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: Ryan Britton <email@hidden>
- Date: Thu, 15 Dec 2005 09:52:17 -0800
[layer setValue:[NSNumber numberWithBool:YES] forKey:@"active"];
On Dec 15, 2005, at 8: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
What is the proper way to set a boolean value?
Regards,
Ric.
_______________________________________________
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
_______________________________________________
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