Using NSUserDefaults from a bundle-less app
Using NSUserDefaults from a bundle-less app
- Subject: Using NSUserDefaults from a bundle-less app
- From: "ROSE,ROBERT W (HP-Corvallis,ex1)" <email@hidden>
- Date: Thu, 3 Apr 2003 17:29:06 -0800
Hi, I've got a bundle-less background application that uses Cocoa, and I
would like to be able to use NSUserDefaults from it so that my foreground
app can read information out of the defaults that are saved..
Unfortunately, I can't find a way to specify what domain the background app
should use. Currently I'm trying this:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject: foo forKey: bar];
...
// program exits shortly after
This does absolutely nothing, that I can tell. I think it's because my
background app doesn't have a bundle... so how do I specify what domain to
save these defaults in?
thanks!!
-robert rose
hp corvallis
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.