• 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
Re: Communications between multiple NIB's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Communications between multiple NIB's


  • Subject: Re: Communications between multiple NIB's
  • From: Steve Weller <email@hidden>
  • Date: Sat, 29 Mar 2008 08:31:32 -0700


On Mar 28, 2008, at 11:27 AM, Lincoln Green wrote:
I followed your suggestion, and it worked great! However, when I delete the preferences file form /Library/Preferences/, my application won't put up a window. Any suggestions to get around this?

Check the console window in Xcode and then start debugging.

Of course I didn't post all my code, so you may have failed to initialize NSUserDefaults yourself. Here is what I have in my app controller:

// Early set up
+ (void)initialize
{
// Set up initial defaults
NSDictionary *defaultValues = [NSDictionary dictionaryWithObjectsAndKeys:
[NSArchiver archivedDataWithRootObject:[NSColor whiteColor]], @"browserBackgroundColor",
[NSNumber numberWithInteger:1], PrefsVersion,
[NSNumber numberWithInteger:1], AppVersion,
nil];

// Set up default values for preferences managed by NSUserDefaultsController
[[NSUserDefaults standardUserDefaults] registerDefaults:defaultValues];




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

-- Blog: http://www.bagelturf.com/ Photos: http://bagelturf.smugmug.com/




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Communications between multiple NIB's (From: Lincoln Green <email@hidden>)

  • Prev by Date: Thread safe?
  • Next by Date: how to check if a property is empty?
  • Previous by thread: Re: Communications between multiple NIB's
  • Next by thread: Re: Garbage collection - was Beginner with Cocoa
  • Index(es):
    • Date
    • Thread