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: Hamish Allan <email@hidden>
- Date: Thu, 26 Jan 2006 15:43:35 +0000
On Wed, 25 Jan 2006 19:03:18 -0800, email@hidden wrote:
I found something interesting, maybe its a bug, or maybe I'm just
dumb, but....
Setting the custom cell to an NSBrowser works as long as it doesn't
use bindings.
Manually be a data source to the NSBrowser, and the custom cell
that is set at - awakeFromNib and it sticks.
Setting it at the same time but hooking the browser to an
NSTreeController, and it all goes south.
What am I doing wrong? Heres a really simple example app. http://
homepage.mac.com/son_gohan/sites/BrowserCell.zip
I think that URL should be http://homepage.mac.com/son_gohan/
BrowserCell.zip
Your NSTreeController has no content array, so it's difficult to tell
what you mean by "it all goes south".
The following may be of use to you -- subclass NSBrowser and override:
- (id)initWithCoder:(NSCoder *)decoder
{
if ((self = [super initWithCoder:decoder]))
[self setCellClass:[CustomCell class]];
return self;
}
Best wishes,
Hamish
_______________________________________________
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