Re: get the list of controls in a NSView

2010-02-14 Thread Jonathan Chacón
Hello OK, I'll use tag value thanks and regards Jonathan Chacón El 14/02/2010, a las 15:10, Roland King escribió: > 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

Re: get the list of controls in a NSView

2010-02-14 Thread Roland King
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 t

Re: get the list of controls in a NSView

2010-02-14 Thread Jonathan Chacón
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 oth

Re: get the list of controls in a NSView

2010-02-13 Thread Jonathan Chacón
Hello everybody, Graham, you can read a little tutorial about how to design an interface using voiceOver and interface builder. voiceOver is an assistive tool for blind users in MacOS. voiceOver is a screen reader. the article is here: http://programaraciegas.weblog.discapnet.es/articulo.aspx

Re: get the list of controls in a NSView

2010-02-13 Thread Graham Cox
On 13/02/2010, at 12:46 PM, Roland King wrote: > Remember the original poster is blind Ah, I hadn't made the connection that this was the same thread. I must admit it's hard to see how Cocoa *development* can be made accessible with IB as it stands now. --Graham ___

Re: get the list of controls in a NSView

2010-02-12 Thread Roland King
Remember the original poster is blind. He can use interface builder to create and position widgets and it seems that the dialogs allowing you to set position and other attributes (like tag) are accessible but the control drag to hook objects up to outlets or set actions is not accessible, so he

Re: get the list of controls in a NSView

2010-02-12 Thread Graham Cox
On 12/02/2010, at 11:48 PM, Roland King wrote: > That's why I suggested viewWithTag: method, if you give the text view tag > number 1 and the two buttons tags 2 and 3, you can easily find them by > calling viewWithTag: with each tag from 1 to 3. I can't really see the benefit of this - you're

Re: get the list of controls in a NSView

2010-02-12 Thread Roland King
I don't understand what you mean by 'how to fetch each control into an NSView array'. You can get the subviews of the main view and keep going down finding all views that way recursively calling subviews on each, but it won't really help you as some of the controls make a collection of views up

Re: get the list of controls in a NSView

2010-02-12 Thread Jonathan Chacón
Hello, Thanks for the information about tags identification but I've two questions: How to fetch each control into a NSView array? Can I identify a control using value of name field in the identity tab of the inspector in IB? Saludos desde mi iPhone Jonathan Chacón Consultor de

Re: get the list of controls in a NSView

2010-02-12 Thread Roland King
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 ow

Re: get the list of controls in a NSView

2010-02-12 Thread Jonathan Chacón
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: jonathan.cha...@telefonica.net Blog: http://programa

Re: get the list of controls in a NSView

2010-02-11 Thread Graham Cox
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 (Cocoa-dev@lists.apple.com) Please do not

get the list of controls in a NSView

2010-02-11 Thread Jonathan Chacón
Hello everybody, is there any method to get the list of controls (buttons, labels, splitters, etc) of a NSView? thanks and regards Jonathan Chacón Follow me in twitter: http://www.twitter.com/jonathanchacon___ Cocoa-dev mailing list