Re: KVC To-Many and BOOL
Re: KVC To-Many and BOOL
- Subject: Re: KVC To-Many and BOOL
- From: David Peredo <email@hidden>
- Date: Wed, 18 Jul 2007 22:26:47 -0700
Well yes. But in other cases the primitive is automatically cast as a
NSNumber (well maybe cast isn't the right word). I expected the same
behavior for this method.
On Jul 18, 2007, at 7:35 PM, Charles Steinman wrote:
--- David Peredo <email@hidden> wrote:
So... I would think that like other KVC methods,
when returning
primitive numeric types they are returned as
NSNumbers...
That's correct.
when I'm calling a method such as
- (BOOL)objectInBoolsAtIndex:(unsigned int)index;
So why are you returning a BOOL rather than an
NSNumber object?
Cheers,
Chuck
______________________________________________________________________
______________
Looking for a deal? Find great prices on flights and hotels with
Yahoo! FareChase.
http://farechase.yahoo.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden