NSUserdefaultsController warning
NSUserdefaultsController warning
- Subject: NSUserdefaultsController warning
- From: "Lorenzo Thurman" <email@hidden>
- Date: Fri, 20 Jul 2007 14:34:55 -0000 (UTC)
- Importance: Normal
I'm using NSUserDefaultsController via IB (no instance) and have run into
this warning when compiling:
/Users/lorenzo/Documents/Development/Cocoa/weathervane/WeatherVane/WeatherVane.m:
In function '-[WeatherVane checkForChanges:]':
/Users/lorenzo/Documents/Development/Cocoa/weathervane/WeatherVane/WeatherVane.m:586:
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'
Here is the line of code that generates the warning:
[[NSUserDefaultsController sharedUserDefaultsController] save:self];
The methods have different signatures, so why do I get this warning?
--
"Remember...a good friend will help you move. A realy good friend will
help you move a body."
-Unknown
_______________________________________________
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