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

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.

References: 
 >NSToolbarItem tag (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Re: Which alternate row color spec is correct?
  • Next by Date: controlling nstextview undo's
  • Previous by thread: NSToolbarItem tag
  • Next by thread: A question about libraries and frameworks
  • Index(es):
    • Date
    • Thread