I'm getting random crashes when creating an inferred mapping model (with Core Data's lightweight migration) within my application. By the way, I have to do it programmatically in my application while it is running.
This is how I create this model (after I have made proper currentModel and newModel objects, of course):
NSMappingModel *m...
I've got some somewhat hefty string size calculations happening in my app (each one takes close to 500ms, and happens when the user scrolls to a new "page" in my app (like the Weather app). The delay only happens once per page, as the calculation only needs to be run once (and can even be cached for subsequent launches with the same data...
How can I drop a file(or select to open it in Finder) of a type specified in the Info.plist onto my dock icon and then calling a method with the full path of the file?
...
How can I flip an NSWindow so I can press a button, and the window will "flip" like on Dashboard and the content view of the NSWindow changes.
...
I'm having a problem compiling an application which uses Core-Plot in debug mode. It works absolutely fine compiling in release mode, but when I compile in debug mode I get an error that the header file for Core-Plot can't be found. Any idea which of the many settings in x-cide might be causing this problem?
...
Sorry if this has been asked before, but I'm wondering what the best memory management practice is for NSURLConnection. Apple's sample code uses -[NSURLConnection initWithRequest:delegate:] in one method and then releases in connection:didFailWithError: or connectionDidFinishLoading:, but this spits out a bunch of analyzer warnings and ...
Hey guys,
I have converted CGPoint To NSValue and put all the resulting values in q NSArray but when i use [NSKeyedArchiver archiveRootObject:ArrayName toFile:PointArrayFile]; it gives me error.
If some one know please do help me how can I achieve this ...
Thanks
Umer Sufyan
...
I've build a static library working nice in a Cocoa Touch environment. Now I'd like to compile it also for Cocoa.. Can I have a single XCode project with different sdk targets? Is there some resource out there able to give hints about best the practices in this (and other) sense?
...
The Background
A Cocoa Non Document Core Data
project with two Managed Object
Models.
Model 1 stays the same. Model
2 has changed, so I want to migrate
the store.
I've created a new version
by Design > Data Model > Add Model
Version in Xcode.
The difference between versions is a single relationship that's been changed from to a one t...
Hi,
How can i display a list of images stored in an array as list item in pop up button.
If not possible, what can be the alternative way to do so.
...
How can I write bundles in Cocoa without much "fuzz" around it? I just want to have a bundle with an Info.plist, a Contents Folder and that folder should contain a couple of files.
...
How can I make a Menu Extra like the Battery Meter in Cocoa? I can make a Status Item, but they are not movable.
...
I'm using NSFetchedResultsController with a predicate to load a list of Documents in my application. I want to load all the Documents except the currently active one.
I am using Rentzsch's MOGenerator to create a _Document class and then I put all my custom code in the Document subclass. _Document generates an objectID property with typ...
I'm creating an NSDocument application, with two document types: Website and Web Service. This is in my Info.plist:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Website</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>website</string>
</array>
<key>LSTypeIsPackage...
I have a custom NSView which contains a subview—for the purposes of solving this issue, the top level view is simply acting as a container and automatically resizes to fit within the window. Its subview draws a rectangle 10 pixels inset from the edge of the window, except for the bottom, which should get clipped by the window until it's ...
I've got a desktop browser app which uses a WebView to host a Flash plugin. The Flash plugin makes regular requests to an external website for new data, which it then draws as fancy graphics.
I'd like to intercept these web requests and get at the data (so I can display it via Growl, instead of keeping a desktop window around). But best...
Basically I want to create the effect of that provided in the system's menu bar. A user presses on one of the menu headings, and as he moves across the different headings, the menus open up automatically.
The snag is that if I open a pop-up menu for a button, the user has to click again to dismiss it. The entire runloop is on hold as I ...
NSString *statusValue;
NSString *currentValue;
@property(retain, nonatomic) NSString *statusValue;
@property(retain, nonatomic) NSString *currentValue;
@synthesize statusValue;
@sythnesize currentValue;
Given the above, if I am setting one variable to another should I be doing ...
[self setStatusValue: currentValue];
or should I u...
I am working on application that uses cocotron and the method orderedIndex is not supported in that API. I am trying to recreate the functionality of this method using the orderedWindows method of NSApplication but it seems to be a little different. The method I have created goes through the orderedWindows array and checks each element...
Hi guys,
I have a core data-based app that manages records of auto dealerships. Each record stores the dealer's address, which is broken into addressLine1, addressLine2, city, state, and zip components, each stored as a string in the data store.
I would like to present a list of cities with dealerships to the user, so I'm trying to fi...