• 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: Retrieving the selected object in an NSOutlineView.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving the selected object in an NSOutlineView.


  • Subject: Re: Retrieving the selected object in an NSOutlineView.
  • From: Volker in Lists <email@hidden>
  • Date: Wed, 16 Sep 2009 17:41:50 +0200

Hi,

try to call representedObject on one of the items returned by selectedObjects - this gives you the object as it sits in your object graph (probbly still CoreData). Then you can use the keyPath for children on the returned object. Et voila.

Volker

Am 16.09.2009 um 17:20 schrieb Joshua Garnham:


I
am looking to retrieve the selected object in an NSOutlineView so I can
see if the selected object has any children. How would I do this?
I know the NSTreeController has selectedObject but how would I implement this and then check if it has children.


Cheers!
_______________________________________________

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: 
 >Retrieving the selected object in an NSOutlineView. (From: Joshua Garnham <email@hidden>)

  • Prev by Date: Re: Debug-level messages don't appear in Console even after asl_set_filter()
  • Next by Date: CALayer z-ordering
  • Previous by thread: Retrieving the selected object in an NSOutlineView.
  • Next by thread: Debug-level messages don't appear in Console even after asl_set_filter()
  • Index(es):
    • Date
    • Thread