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: "Marcus S. Zarra" <email@hidden>
- Date: Thu, 15 Dec 2005 09:58:50 -0700
[layer setValue:[NSNumber numberWithBool:YES] forKey:@"active"]; //
BOOL flag.
On Dec 15, 2005, at 9:51 AM, Frederick C. Lee wrote:
Greetings:
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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