Hi, I'm trying out the Preference Pane example ( http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/PreferencePanes/Tasks/Sample.html#//apple_ref/doc/uid/20000710-BABFCABJ) but it crashes. I can open the pane, but about 5 seconds after clicking the checkbox, System Preferences.app crashes.
Here's the error message: Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 com.apple.CoreFoundation 0x00007fff869b1683 CFEqual + 259 1 com.apple.CoreFoundation 0x00007fff869d6dcf __CFXPreferencesGetCacheStringForBundleID + 31 2 com.apple.CoreFoundation 0x00007fff869d947d __CFXPreferencesGetSourceForTriplet + 141 3 com.apple.CoreFoundation 0x00007fff86a0a0da _CFXPreferencesSetValue + 74 4 com.apple.AppKit 0x00007fff83bfdeda -[NSApplication sendAction:to:from:] + 95 And the method that crashes: - (IBAction)checkboxClicked:(id)sender { NSLog(@"Checkbox clicked"); if ( [sender state] ) CFPreferencesSetAppValue(CFSTR("Bool Value Key"), kCFBooleanTrue, appID ); else CFPreferencesSetAppValue(CFSTR("Bool Value Key"), kCFBooleanFalse, appID ); } I think I maybe forgot to set some settings in my project? What could go wrong? This is how appID is set: - (id)initWithBundle:(NSBundle *)bundle { // Initialize the location of our preferences if ((self = [super initWithBundle:bundle]) != nil) { appID = CFSTR("com.mydomain.mypanel"); } return self; } If there is a better mailinglist to post this to, please let me know. Kind regards, Jeroen Beckers _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com