• 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
@unionOfObjects and direct KVC in NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

@unionOfObjects and direct KVC in NSArray


  • Subject: @unionOfObjects and direct KVC in NSArray
  • From: Frédéric Testuz <email@hidden>
  • Date: Wed, 09 Apr 2014 22:24:40 +0200

Say I have an array of Person object with a name property. Is there a difference between :

namesArray = [personsArray valueForKeyPath:@"@unionOfObjects.name"];

and

namesArray = [personsArray valueForKeyPath:@"name"];


On a small test I can just see that the concrete NSArray class returned are not the same but is there something special ?

Frédéric



_______________________________________________

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


  • Prev by Date: Re: Memoryleak in SpriteKit?
  • Next by Date: NSButton/NSBox interaction
  • Previous by thread: Re: Memoryleak in SpriteKit?
  • Next by thread: NSButton/NSBox interaction
  • Index(es):
    • Date
    • Thread