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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to