• 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: IB Inspector "Tag"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB Inspector "Tag"


  • Subject: Re: IB Inspector "Tag"
  • From: Dustin Voss <email@hidden>
  • Date: Sat, 29 Mar 2003 11:21:15 -0800

To help get a menu item by tag, you can use the NSMenu category found at http://cocoadev.com/index.pl?NSMenuCategory. It has a "nestedItemWithTag:" function.

On Saturday, March 29, 2003, at 10:14 AM, Brant Vasilieff wrote:

It's a numerical identifier (integer) used in controls as a way to distinguish between them in your delegate without having to use outlets.

For menu items, it's better to use the tag or selector rather than the title or position of the item to tell which item was selected.

HTH,
Brant

On Saturday, March 29, 2003, at 08:21 AM, email@hidden wrote:

Does anyone know what the "tag" attribute in IB is? (Look in the
Attribute Inspector for an NSTextField, for example.) Apparently, it's
a variable of NSControl, but I can't find any details on it. It can't
be a unique identifier since all of them are set to zero initially.
What is it good for?
_______________________________________________
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: Find-like list view?
  • Next by Date: Re: Archiving and Dearchiving
  • Previous by thread: Re: IB Inspector "Tag"
  • Next by thread: Scaling window contentView for printing
  • Index(es):
    • Date
    • Thread