On Mon, 14 Oct 2013 14:18:19 -0700, Jens Alfke said:

>Hey, Rick’s tree controller question reminded me that I’ve got one I’ve
>been meaning to ask:
>
>With an NSOutlineView driven by an NSTreeController, I’m having trouble
>figuring out how to programmatically select an item: given one of my
>model objects, how do I tell the controller or view to select it?

Yeah, that's always annoyed me too.  I have a subclass that allows me to do it, 
and in the comments I noted:

"NSTreeController, unlike NSArrayController, does not have a method to select a 
given model object, it can only select by indexpath. (At WWDC09, I was told the 
reason for this is that it is hard to implement in the general case in a 
performant way.)"

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to