• 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: What are Tags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What are Tags


  • Subject: Re: What are Tags
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 3 May 2002 12:58:00 -0700

On Friday, May 3, 2002, at 12:41 PM, Mike O'Connor wrote:

Where can I find a discussion of what Tags are, and how to use them? TIA

I'll assume that you're referring to tags in the context of cells and controls in Cocoa ;-)

A tag is an integer value that you can assign to a cell such as a menu item, or a text cell. You can set tag values programmatically, or using the interface builder inspector.

I tend to use tags on popup menu items, so that when I want to know what option a user has picked, I can send the -tag message instead of trying to figure it out from the position of the menu item (which might change), or even worse, the title of the menu item (which *will* change when the app is localized).

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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: 
 >What are Tags (From: "Mike O'Connor" <email@hidden>)

  • Prev by Date: Re: What are Tags
  • Next by Date: Re: Returns from a sheet
  • Previous by thread: Re: What are Tags
  • Next by thread: Cocoa Equivalents for AppleEvent calls.
  • Index(es):
    • Date
    • Thread