Re: IB Inspector "Tag"
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.