Re: Binding NSTreeController to NSBrowser
Re: Binding NSTreeController to NSBrowser
- Subject: Re: Binding NSTreeController to NSBrowser
- From: Ben Stiglitz <email@hidden>
- Date: Sat, 22 Dec 2007 00:02:46 -0500
There is still an issue with browsers *if* you set the count key path
on the tree controller. We hope to fix this in some future update, but
for now you should be able to bind a browser on Leopard properly if
you leave out that key. Sorry for the trouble.
-Beb
On Dec 18, 2007, at 4:00 PM, David Spooner <email@hidden>
wrote:
I just tried this and it appears to work (on 10.5). In addition to
binding the browser's content to the tree controller's
arrangedObjects, I also bound the browser's contentValues to the
tree controller's arrangedObjects with model key path
representedObject. My tree controller's content is bound to a
hierarchy of NSTreeNode with strings as represented objects...
dave
On 18-Dec-07, at 12:38 PM, Matt Neuburg wrote:
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
_______________________________________________
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
_______________________________________________
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