Activity monitior
how to do an application like activity monitor in cocoa ? ...
how to do an application like activity monitor in cocoa ? ...
Hi, Is there a way to convert mutable object converted to immutable one in cocoa? I have used NSMutableDictionary *mut=[[NSMutableDictionary alloc] initWithDictionary: copyItems:]; But this dictionary is used in many other places without the mutable thing. Best Regards, Subrat ...
Hi all, Apple's Texture2D class is a very useful bit of kit for iOS developers. Q. Is there a Mac OS X version of this class available? (I've googled but can only find iOS implementations, mostly through Cocos2D projects.) Cheers. ...
Is there any way to force an NSTableView to reload autosaved table column info (ie, order and size)? I've got an app that lets you switch between multiple data sets and it displays uses a table to display the data. For each data set, there's a view controller that loads the nib containing the table view. If I view the first data set and...
I am making a subclass of the NSLevelIndicatorCell and I want to draw it vertically. This doesn't work, what am I doing wrong? - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView{ [[NSGraphicsContext currentContext] saveGraphicsState]; NSAffineTransform *transform = [NSAffineTransform transform]; [transform rotateByDegr...
This method in my class reads a previously created plist, but when it does NSPropertyListSerialization leaks all over the place. NSDates and NSCFStrings, mostly. Any suggestions on what I can do to prevent this? - (id)readPlist:(NSString *)fileName { NSData *plistData; NSString *errorA; NSPropertyListFormat format; ...
hi, I have problems with my coredata sqlite DB, which hosts a book DB. After a crash a user experiences has the problem, that the data isn't shown properly any more in his/her tableview. This is due to the fact, that the performFetch method returns an error: [NSFetchedResultsController deleteCacheWithName:nil]; if (![[self fetchedResu...
Ok so what I want to do is create a background agent that monitors http traffic to/from a certain application and performs actions when there are requests and responses to a certain website. Is there a good way to do this in Cocoa? I'd like to avoid using really low level sniffing and/or requiring root access to do this (admin access is ...
I have a simple document-based application that simply creates a custom XML file. It uses an Outline View to navigate the XML document. When an item in the Outline View is selected a custom view is displayed as a sub view of the document view that allows the user to enter in data. On one of the views has a NSTextField. It has its "Al...
In my application I open a sheet window for user input. Because the window is complex and has a few textfields and a few buttons I created a separate controller for it (InputWindowController). When the sheet is closed I want to receive some values from the InputWindowController but I don't know how. In all samples I found the controls i...
Hi, sText is an instance variable of type NSString. No properties are involved. The loop below is supposed to get the first character of sText and store that char in sCurrentCharacter. Then the rest of sText should be reassigned to sText. This goes on until the string has been eaten up. (I left out all the code which actually does some...
The Problem I run my unit tests. At one point, I wait using: [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1]]; for an NSOperationQueue to be empty. When my app reaches this line, it terminates immediately. It's run this exact same line with other tests. All tests were working perfectly recently. It al...
What is a CALayer (as seen in the layer property on a UIView) and where would we use such a class? ...
I have a Core-Plot scatter plot that seems to be working great. The x axis shows date/time, the y axis a value from 0-500. I set up the x axis as follows: plotSpace.xRange = [CPPlotRange plotRangeWithLocation: CPDecimalFromFloat(maxTime - 2*60*60*24) length:CPDecimalFromFloat(2.5*6...
As an example, this can be observed if a progress indicator is running and main menu is pulled down. What is the best way to avoid this? ...
Hello fellows, I'm wondering how to scroll programmatically to a given anchor in a WebView. The content I am showing is rendered by [[webView mainFrame] loadHTMLString:htmlString baseURL:someURL]; and thus I cannot simply navigate to #anchors by pointing them out in the URLs. I'm looking for a method along the lines of [[webView ...
Hello friends. I have a web service with a URL like this: http://webservice.com/?log=1 I would like to make a request to this URL in Objective-C such that the web service can log that fact. I don't care to pass anything on to the web service and nor do I care how it responds to the request. What is the most effective way to achieve th...
I am a beginner to objective c.Please tell me that how perform multiplay selection in NSTableView.I am unable to retain previous selection, when i am clicking on another row. ...
I'm porting a program I wrote on C# to Cocoa and I'm trying to figure out how to use XML to go online to my website, grab the file and parse it, then compare the version and pop a message box to ask if you want to open your browser to the update page. Here's the code from C#: public void CheckVersion() { Version newVersion...
Hello, I am developping an objective c application and I would like to detect non responsives windows even if they are not own by my application. Is there a way to be notified when a such case occurs? Thanks in advance for your help, Regards, ...