Re: NSSegmentedControl and tags
Re: NSSegmentedControl and tags
- Subject: Re: NSSegmentedControl and tags
- From: Seth Willits <email@hidden>
- Date: Wed, 7 Apr 2004 09:56:29 -0700
On Apr 6, 2004, at 3:40 PM, Mike R. Manzano wrote:
Is there a way to set a tag or something other than a label for a
segment of a control? I would like to reference a segment by tag as
opposed to position. I could create a dictionary that maps a name to a
position but it seems like extra work.
Yup.
[[NSSegmentedControl cell] setTag: forSegment: ];
<
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSSegmentedCell.html#//apple_ref/
occ/cl/NSSegmentedCell>
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
REALbasic Guru at ResExcellence -
http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"Dreams of today are the reality of tomorrow."
------------------------------------------------------------------------
---
_______________________________________________
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.