Skip navigation.
 
mlRe: Source list using bindings?
FROM : Hamish Allan
DATE : Tue Mar 25 22:07:15 2008

Hi Rob,

On Tue, Mar 25, 2008 at 6:20 AM, Rob Keniger <<email_removed>> wrote:

> On 25/03/2008, at 11:42 AM, Hamish Allan wrote:
>

>> Is there any way to use bindings for a source list? The object that
>> gets passed to the delegate method -outlineView:isGroupItem: is an
>> NSTreeControllerTreeNode which doesn't appear to have a public API...

>
>  Class-dump shows that NSTreeControllerTreeNode is a subclass of
>  NSTreeNode so you should be able to treat it as such and get the
>  relevant object for the item by calling -representedObject.


Ah, thanks. I wonder what the purpose of this subclass is and how
fragile this solution?

I'm not convinced I'm going to go the bindings route, as my source
list has non-collapsible groups, and making sure they're expanded and
not selected when the table is first displayed seems as much trouble
as just using a datasource in the first place!

Best wishes,
Hamish

Related mailsAuthorDate
mlSource list using bindings? Hamish Allan Mar 25, 02:42
mlRe: Source list using bindings? Rob Keniger Mar 25, 07:20
mlRe: Source list using bindings? Hamish Allan Mar 25, 22:07
mlRe: Source list using bindings? Jonathan Dann Mar 25, 22:49
mlRe: Source list using bindings? Hamish Allan Mar 26, 01:45
mlRe: Source list using bindings? Jonathan Dann Mar 26, 20:59