compiler error related to 'save' method of NSUserDefaultsController
compiler error related to 'save' method of NSUserDefaultsController
- Subject: compiler error related to 'save' method of NSUserDefaultsController
- From: Chris Heimark <email@hidden>
- Date: Sun, 11 Nov 2007 17:04:03 -0500
The below code snippet causes 3 warnings which make no sense to me.
/Users/chris/Development/CHmessenger/CHmessenger.mm:627: warning:
multiple methods named '-save:' found
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
AppKit.framework/Headers/NSUserDefaultsController.h:46: warning:
using '-(void)save:(id)sender'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
CoreData.framework/Headers/NSManagedObjectContext.h:128: warning:
also found '-(BOOL)save:(NSError **)error'
Has anyone ever seen this before? I am running Tiger 10.4.10 & XCode
2.4.1. My usage of the method exactly mimics the class definition so
I am very confused.
Chris
- (void)applicationWillTerminate:(NSNotification *)aNotification
{
[[NSFileManager defaultManager] removeFileAtPath:tempApplication
handler:self];
if ([[NSUserDefaultsController sharedUserDefaultsController]
hasUnappliedChanges])
{
[[NSUserDefaultsController sharedUserDefaultsController] save:self];
}
}
_______________________________________________
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