Re: NSToolbarItem tag
Re: NSToolbarItem tag
- Subject: Re: NSToolbarItem tag
- From: Andreas Mayer <email@hidden>
- Date: Wed, 6 Aug 2003 18:25:56 +0200
Am Mittwoch, 06.08.03 um 11:17 Uhr schrieb Francisco Tolmasky:
For some reason, whenever I set a toolbar item's view to an NSView
object, it automatically makes the tag return -1
from NSToolBarItem's documentation:
"- (void)setView:(NSView *)view
Use this method to make the receiver into a view item. Note that many
of the set/get methods are implemented by calls forwarded to view, if
it responds to it. [...]"
from NSView's documentation:
"- (int)tag
Returns the receiver's tag, an integer that you can use to identify
view objects in your application. NSView's implementation returns -1.
[...]"
If the NSView you are using doesn't implement a different
implementation for 'tag' you will have to write your own subclass and
implement it yourself.
bye. Andreas.
_______________________________________________
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.