• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: I think I have found a big bug in NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: I think I have found a big bug in NSBrowser
      • From: Andre <email@hidden>
  • Prev by Date: [COREDATA] fetchRequest performance problem, any advice ?
  • Next by Date: Re: Knowing whether a tablet is connected and switching modes
  • Previous by thread: Re: I think I have found a big bug in NSBrowser
  • Next by thread: Re: I think I have found a big bug in NSBrowser
  • Index(es):
    • Date
    • Thread