• 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
Registering Defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Registering Defaults


  • Subject: Registering Defaults
  • From: "Michael P. Rogers" <email@hidden>
  • Date: Wed, 20 Feb 2002 09:35:02 -0600

Hi,

I'm trying to use the code in the Cocoa Programming for Mac OS X book to register defaults, and have two questions. I have to ask my first question rather than just try it, the reason for which will be apparent in my second question.

First, do I have it right that registerDefaults will only write out those preferences that are not already in the plist? Otherwise, it looks like the code on p.161 would wipe out existing preferences.

Second, why *doesn't* the code on p. 161 work? When I run it, merely opening a window, I don't see any RaiseMan.plist showing up in my preferences. Isn't that what registerDefaults is supposed to do, create a preferences file if it doesn't exist? (I know I've called registerDefaults because of the NSLog() statement that follows).

I only get a plist to show up once I've opened up and played with the Preferences window.

Any help would be appreciated. (I'd post the code in question, except I don't have permission).

Thanks,

Michael
--
Dr. Michael P. Rogers
Office: 203G Shilling Hall
Phone: 217-424-6327 (W) 309-828-8655 (H) 309-825-6454 (C)
E-Mail: email@hidden

Web site: http://math.millikin.edu/
Astronomy Site: http://twincityamateurastronomers.org
_______________________________________________
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: Registering Defaults
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: iDisk access in Cocoa
  • Next by Date: Re: Tiff with mask
  • Previous by thread: Re: regex in strings
  • Next by thread: Re: Registering Defaults
  • Index(es):
    • Date
    • Thread