Re: IB Inspector "Tag"
Re: IB Inspector "Tag"
- Subject: Re: IB Inspector "Tag"
- From: "Sven A. Schmidt" <email@hidden>
- Date: Sat, 29 Mar 2003 19:09:28 +0100
On Samstag, Mdrz 29, 2003, at 05:19 Uhr, A.M. 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?
It's an identifier you can set and use to more easily access a group af
similar controls. For example you might have a dialog with lots of text
fields and your controller is the delegate for all the text fields.
Instead of connecting all the text fields to your controller you can
just switch on [ sender tag ] to identify text fields.
Sven
_______________________________________________
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.