Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
- Subject: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
- From: email@hidden
- Date: Sun, 22 Jan 2006 17:55:09 -0500
Hello,
I am getting the following warning from my class when I am attempting
to validate a Core Data NSManagedObject.
warning: passing argument 1 of 'validateValue:forKey:error:' from
incompatible pointer type
NSError *error;
if ([location validateValue:tempCDATA forKey:@"name" error:&error])
{ // warning here
[location setValue:tempCDATA forKey:@"name"];
NSLog (@"name = %@", tempCDATA);
}
else {
NSLog (@"ERROR: Not saved: name = %@", tempCDATA);
}
This happens if the tempCDATA is an NSString, NSNumber, or id.
I am new to cocoa. Can you help me figure out why I am getting this
warning?
I appreciate it.
Lee
_______________________________________________
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