• 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
Re: KVC To-Many and BOOL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: KVC To-Many and BOOL (From: Charles Steinman <email@hidden>)

  • Prev by Date: Separator in the case of an NSOutlineView
  • Next by Date: Re: Getting PDF data from a webView
  • Previous by thread: Re: KVC To-Many and BOOL
  • Next by thread: kAXPositionAttribute and kAXSizeAttribute
  • Index(es):
    • Date
    • Thread