Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
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