Re: Binding NSTreeController to NSBrowser
Re: Binding NSTreeController to NSBrowser
- Subject: Re: Binding NSTreeController to NSBrowser
- From: Matt Neuburg <email@hidden>
- Date: Tue, 18 Dec 2007 11:38:04 -0800
- Thread-topic: Binding NSTreeController to NSBrowser
On Mon, 17 Dec 2007 23:47:39 +0000, "Chris Blackburn"
<email@hidden> said:
>Hey all,
>
>Since there was no activity on this I've raised a bug, radar id
>5649518. Any help on getting round this bug until there is a fix would
>be greatly apreciated.
>
>Thanks
>
>Chris
>
>On 12/14/07, Chris Blackburn <email@hidden> wrote:
>> Hey all,
>>
>> Part of my app takes an XML input file, hands it to an
>> NSTreecontroller which is bound to an NSBrowser. This works fine under
>> tiger but is broken under leopard.
>>
>> I think I have traced the problem to where the NSBrowsers content is
>> bound to treeController.arrangedObjects. The arrangedObjects binding
>> seems to have changed under leopard, also from the docs I get the
>> impression I was never supposed to use that binding anyway.
Could I steal this thread to ask a more elementary question? Chris, it
sounds like you can actually help with this so I hope you don't mind my
piggybacking here.
All I want to do is make a simple NSBrowser on Leopard (only) using
NSTreeController and NSTreeNode. My NSTreeController's content object is
bound to an NSTreeNode which itself has a subnode I've given it; the tree is
created using NSTreeNode treeNodeWithRepresentedObject (my "represented
objects" are simply strings) and mutableChildNodes, as you would expect, and
I can see that the tree is being created, and I can see that the
NSTreeController's content is indeed the tree. So things would appear to be
working from that point of view.
My problem is that the NSBrowser is not displaying anything when the app
runs. It's bound to the NSTreeController's arrangedObjects.
Can someone set me straight? This should be the simplest thing in the world
to do, so presumably all I need is some kind of dope slap... Please provide
it! Thx - m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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