• 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: NSBrowser problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBrowser problems


  • Subject: Re: NSBrowser problems
  • From: Matt Gillette <email@hidden>
  • Date: Fri, 7 Nov 2003 09:24:41 -0800

I'm just a newbie, but some of the code I copied uses something similar to this, so it may help:

It would look like this:


FSBrowserCell *aCell = [[FSBrowserCell alloc] init];
[browser setDataCell: aCell];
[aCell release]



Matt

On Nov 7, 2003, at 7:04 AM, Michael Becker wrote:

Hi!

Somehow I cannot seem to understand what the heck I am doing wrong here. I have an NSBrowser and FSBrowserCell, a sublass of NSBrowserCell. In the AppController's awakeFromNib: I have the following:

. . .
[browser setCellClass:[FSBrowserCell class]];
. .

And then in the -(void)browser:sender:willDisplayCell delegate method it says:

. . .
[cell setAttributedStringValueFromFSNodeInfo:parameter];
. . .

Everything compiles perfectly, no warnings. However, when the application starts I immediately get these fatal errors:

2003-11-07 15:54:20.706 browser[1225] *** -[NSBrowserCell setAttributedStringValueFromFSNodeInfo:]: selector not recognized

The class should be FSBrowserCell, not NSBrowserCell. I tried setCellPrototype: instead of setCellClass: on NSBrowser, didn't work either. Yes, this is taken more or less directly from the SimpleBrowser AppKit example, and the same code seems to work flawlessly in the original.
What am I doing wrong here?

Thanks!
Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSButton w Image not redrawing
  • Next by Date: Re: Parameter lists
  • Previous by thread: NSBrowser problems
  • Next by thread: Key down issue
  • Index(es):
    • Date
    • Thread