• 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
NSUserdefaultsController warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSUserdefaultsController warning
      • From: ∞ <email@hidden>
  • Prev by Date: Re: NSArrayController content array vs arrangedObjects
  • Next by Date: Re: NSUserdefaultsController warning
  • Previous by thread: Re: set modification date of symlink
  • Next by thread: Re: NSUserdefaultsController warning
  • Index(es):
    • Date
    • Thread