Skip navigation.
 
mlRe: Communications between multiple NIB's
FROM : Steve Weller
DATE : Sat Mar 29 16:31:32 2008

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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>


--
Blog:    Photos: <A href="http://bagelturf.smugmug.com/">http://bagelturf.smugmug.com/

Related mailsAuthorDate
mlCommunications between multiple NIB's Lincoln Green Mar 24, 17:02
mlRe: Communications between multiple NIB's Cathy Shive Mar 24, 17:06
mlRe: Communications between multiple NIB's Sherm Pendley Mar 24, 17:11
mlRe: Communications between multiple NIB's Jonathan Hess Mar 24, 20:37
mlRe: Communications between multiple NIB's Bertil Holmberg Mar 24, 22:39
mlRe: Communications between multiple NIB's Gerd Knops Mar 24, 23:27
mlRe: Communications between multiple NIB's Steve Weller Mar 25, 01:58
mlRe: Communications between multiple NIB's Lincoln Green Mar 28, 19:27
mlRe: Communications between multiple NIB's Steve Weller Mar 29, 16:31