Re: Retrieving the selected object in an NSOutlineView.
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