Re: I think I have found a big bug in NSBrowser
Re: I think I have found a big bug in NSBrowser
- Subject: Re: I think I have found a big bug in NSBrowser
- From: Andre <email@hidden>
- Date: Fri, 27 Jan 2006 13:20:09 -0800
Hamish Allan wrote:
On 26 Jan 2006, at 18:00, Andre wrote:
Yes, it now works correctly, even when used with the
NSTreeController.
But should I have to subclass to get this right?
No, you shouldn't, it's a bug. (For more explanation see http://
www.cocoabuilder.com/archive/message/cocoa/2005/12/9/152238)
I see.
Please report this at http://bugreporter.apple.com/, and also file
an enhancement request for IB to support custom cell placement in
NSBrowser like it does in NSTableColumn!
I will.
By the way, I still can't get your code to work without a content
array for the NSTreeController.
Hmm, Did you set it to entity mode or class mode? In class mode, its
using NSDictionary so I just bind the NSBrowser to NSTreeController
using the following:
Content: arrangedObjects
ContentValues: arrangedObjects.name
SelectionIndexPaths: selectionIndexPaths
I think the tree controller is set to prepare content too. The way
its set up in the download is the bindings are all disconnected
(which was my mistake).
It even works in IB using test mode, just click the + to add a peer
and ◯ to add a child...
Best wishes,
Hamish
Andre
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden