NSBrowser problems
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.