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

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


  • Follow-Ups:
    • Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Re: Searching a controller's content
  • Next by Date: KVC with an path, AppleScript and InterfaceBuilder
  • Previous by thread: Re: PCH not being used
  • Next by thread: Re: Incompatible pointer type from NSManagedObject's validateValue:forKey:error method
  • Index(es):
    • Date
    • Thread