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: Roland King <email@hidden>
- Date: Fri, 12 Feb 2010 19:17:36 +0800
and as I believe I mentioned before, you can assign a numeric 'tag' to each view and control in interface builder and you can use the viewWithTag: method of UIView to search for a specific view with a specific tag. That's not a way of coding I think people usually use, you have to manage your own tag mapping (unfortunately you can't use a #define type value to tag views) and there are usually better ways to do this. However if assigning a tag in Interface Builder is an accessible operation where you've found making connections not to be, this may be a good way to find the objects you set up in IB and add the connections to them in your code.
On 12-Feb-2010, at 5:28 PM, Jonathan Chacón wrote:
> Hello
>
> Thank you. I will try a new way to make connections between Interface builder and xCode
>
> Regards
>
> Saludos desde mi iPhone
> Jonathan Chacón
>
> Consultor de accesibilidad, usabilidad y nuevas tecnologías
>
> Teléfono: 679953948
> E-mail: email@hidden
> Blog: http://programaraciegas.weblog.discapnet.es
> Twitter: http://www.twitter.com/Jonathanchacon
>
>
>
> El 12/02/2010, a las 05:18, Graham Cox <email@hidden> escribió:
>
>>
>> On 12/02/2010, at 3:12 PM, Jonathan Chacón wrote:
>>
>>> is there any method to get the list of controls (buttons, labels, splitters, etc) of a NSView?
>>
>>
>> [NSView subViews]
>>
>> --Graham
>>
>>
> _______________________________________________
>
> 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
_______________________________________________
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