• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using NSUserDefaults from a bundle-less app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Using NSUserDefaults from a bundle-less app
      • From: David Thorup <email@hidden>
    • Re: Using NSUserDefaults from a bundle-less app
      • From: "John C. Randolph" <email@hidden>
    • Re: Using NSUserDefaults from a bundle-less app
      • From: Chris Parker <email@hidden>
  • Prev by Date: Re: NSTask autorelease OR retain/release -> SIGBUS
  • Next by Date: Re: Using NSUserDefaults from a bundle-less app
  • Previous by thread: Re: Server implementation questions
  • Next by thread: Re: Using NSUserDefaults from a bundle-less app
  • Index(es):
    • Date
    • Thread