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

NSBrowser problems


  • Subject: NSBrowser problems
  • From: Michael Becker <email@hidden>
  • Date: Fri, 7 Nov 2003 16:04:27 +0100

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.

  • Prev by Date: Window with click-through areas
  • Next by Date: Key down issue
  • Previous by thread: Re: Window with click-through areas
  • Next by thread: Re: NSBrowser problems
  • Index(es):
    • Date
    • Thread