• 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: Using isMemberOfClass with a tree of subclass of NSManagedObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using isMemberOfClass with a tree of subclass of NSManagedObject


  • Subject: Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
  • From: "Kyle Sluder" <email@hidden>
  • Date: Sat, 28 Jun 2008 16:08:45 -0400

On Sat, Jun 28, 2008 at 2:14 PM, Bill Bumgarner <email@hidden> wrote:
> You want -objectForKey:  -valueForKey: is for key value coding,
> -objectForKey: is for extracting objects from a dictionary.
>
> Shouldn't cause a problem.

I thought the collection classes were smart and treated -valueForKey:
by sending each object in the collection -valueForKey: and compiling
the results in an object arranged in the same way as the original.
That way you could have an array of strings and do something like
[myArray valueForKey:@"length"] to get an array of lengths
corresponding to each instance.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
      • From: Bill Bumgarner <email@hidden>
References: 
 >Using isMemberOfClass with a tree of subclass of NSManagedObject (From: Yoann GINI <email@hidden>)
 >Re: Using isMemberOfClass with a tree of subclass of NSManagedObject (From: "Owen Yamauchi" <email@hidden>)
 >Re: Using isMemberOfClass with a tree of subclass of NSManagedObject (From: Yoann GINI <email@hidden>)
 >Re: Using isMemberOfClass with a tree of subclass of NSManagedObject (From: Mike Abdullah <email@hidden>)
 >Re: Using isMemberOfClass with a tree of subclass of NSManagedObject (From: Yoann GINI <email@hidden>)
 >Re: Using isMemberOfClass with a tree of subclass of NSManagedObject (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: List of Indexed Accessor Names for NSMutableArray
  • Next by Date: Building a Setup Assistant
  • Previous by thread: Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
  • Next by thread: Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
  • Index(es):
    • Date
    • Thread