Re: Core Data: How do you properly set a boolean value?
Re: Core Data: How do you properly set a boolean value?
- Subject: Re: Core Data: How do you properly set a boolean value?
- From: mmalcolm crawford <email@hidden>
- Date: Thu, 15 Dec 2005 09:01:35 -0800
On Dec 15, 2005, at 8:51 AM, Frederick C. Lee wrote:
I'm trying to programmatically load default values into a
NSManagedObject. But I can't set a required field which is BOOLean:
[layer setValue:YES forKey:@"active"]; // BOOL flag.
warning: passing argument 1 of 'setValue:forKey:' makes pointer
from integer without a cast
What is the proper way to set a boolean value?
As an NSNumber -- the value argument must be an object...
mmalc
_______________________________________________
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