• 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: [SOLVED] noob question regarding proxy object returned by -selection method of NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] noob question regarding proxy object returned by -selection method of NSArrayController


  • Subject: Re: [SOLVED] noob question regarding proxy object returned by -selection method of NSArrayController
  • From: "Owen Yamauchi" <email@hidden>
  • Date: Sat, 28 Jun 2008 11:14:50 -0700

How about [[controller selection] valueForKey:@"self"]? NSObject has a
-self method which just returns the receiver, and since the proxy
object must respond to the KVC query as if it were the underlying
object, you get the underlying object back.

Owen
_______________________________________________

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: 
 >[SOLVED] noob question regarding proxy object returned by -selection method of NSArrayController (From: Stuart Malin <email@hidden>)

  • Prev by Date: Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
  • Next by Date: Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
  • Previous by thread: [SOLVED] noob question regarding proxy object returned by -selection method of NSArrayController
  • Next by thread: Re: Style Question (Robert Claeson)
  • Index(es):
    • Date
    • Thread