• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: get the list of controls in a NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: get the list of controls in a NSView
      • From: Roland King <email@hidden>
References: 
 >get the list of controls in a NSView (From: "Jonathan Chacón" <email@hidden>)
 >Re: get the list of controls in a NSView (From: Graham Cox <email@hidden>)
 >Re: get the list of controls in a NSView (From: "Jonathan Chacón" <email@hidden>)
 >Re: get the list of controls in a NSView (From: Roland King <email@hidden>)
 >Re: get the list of controls in a NSView (From: "Jonathan Chacón" <email@hidden>)
 >Re: get the list of controls in a NSView (From: Roland King <email@hidden>)

  • Prev by Date: Re: Validating unique objects in CoreData
  • Next by Date: Re: Core data - loading a subtree of objects
  • Previous by thread: Re: get the list of controls in a NSView
  • Next by thread: Re: get the list of controls in a NSView
  • Index(es):
    • Date
    • Thread