Re: get the list of controls in a NSView
Re: get the list of controls in a NSView
- Subject: Re: get the list of controls in a NSView
- From: Jonathan Chacón <email@hidden>
- Date: Sun, 14 Feb 2010 14:40:16 +0100
Hello,
I can explore all controls in a view with this code:
NSArray *listOfControls = [[window contentview] subViews];
for (NSInteger i=0;i<[listOfControls count];i++) {
NSControl * tmp = [listOfControls objectAtIndex: i];
}
well I can identify a control by its title, description or other attribute.
The problem is the attribute "Name" of the identify tab in the inspector object in Interface builder.
I type:
[control name];
but that method ("name") doesn't exist.
Can I know the name attribute of a control?
Thanks
Regards
Jonathan Chacón Barbero
Accessibility, usability and new technologies consultant
Phone: +34 679953948
e-Mail: email@hidden
Blog: http://programaraciegas.weblog.discapnet.es
Twitter: http://www.twitter.com/jonathanchacon
LinkedIn: http://es.linkedin.com/in/jonathanchacon
Facebook: http://www.facebook.com/jonathan.chacon.barbero
Messenger: email@hidden
Skype: Tyflos_
Ping for iPhone: jchacon
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden