• 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
compiler error related to 'save' method of NSUserDefaultsController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: compiler error related to 'save' method of NSUserDefaultsController
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: NSCell copyWithZone producing EXC_BAD_ACCESS
  • Next by Date: Re: compiler error related to 'save' method of NSUserDefaultsController
  • Previous by thread: Re: Accessibility API - moving and resizing windows (in one API call)
  • Next by thread: Re: compiler error related to 'save' method of NSUserDefaultsController
  • Index(es):
    • Date
    • Thread