• 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
Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method


  • Subject: Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 23 Jan 2006 09:22:12 +0100

Am 23.01.2006 um 00:52 schrieb Cameron Hayne:
Looking in the NSManagedObject docs, I see that the signature of that method is:
- (BOOL)validateValue:(id *)value forKey:(NSString *)key error: (NSError **)error
which shows that the first argument is supposed to be of type (id *) i.e. a pointer to an object, not an object itself.

Watch the typos there! You meant to write a pointer to a POINTER to an object. id already is a pointer to an arbitrary object, and id* thus is a pointer to a pointer. Tiny but important distinction that can save one a lot of debugging :-)


Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
      • From: Cameron Hayne <email@hidden>
References: 
 >Incompatible pointer type from NSManagedObject's validateValue:forKey:error method (From: email@hidden)
 >Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: How to decompress file
  • Next by Date: Xcode shortcut key
  • Previous by thread: Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
  • Next by thread: Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
  • Index(es):
    • Date
    • Thread