no - you've asked this exact thing before and I've answered it before. The name
in Interface Builder is internal to interface builder *only*, it's not a
property of the object, there is no way after the NIB has been loaded to know
what the 'name' set in IB was. However, again, the value in the tag field *is*
set onto the tag property of the object, that is the only reliable way to
identify them.
On 14-Feb-2010, at 9:40 PM, Jonathan Chacón wrote:
> 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 protected]
> 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 protected]
> Skype: Tyflos_
> Ping for iPhone: jchacon
>
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]