• 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: Roland King <email@hidden>
  • Date: Sat, 13 Feb 2010 09:46:23 +0800

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 can't do it. He is as far as I can tell trying to find a way to locate the objects in interface builder he would have hooked up to outlets if he were able to do so, after the nib has loaded, and then do those hookups in code.

I still think just building the interface in code is easier but he wishes to use Interface Builder for whatever piece of the process he can.

On 13-Feb-2010, at 5:56 AM, Graham Cox wrote:

>
> 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 assigning a number to each view so you can find it. Each view already has a number - its pointer. So just make an outlet for each view of interest and then you can refer to it directly by name (ivar identifier) that you assign. Much easier.
>
> --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

  • Follow-Ups:
    • Re: get the list of controls in a NSView
      • From: Graham Cox <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>)
 >Re: get the list of controls in a NSView (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: @distinctUnionOfArrays problem
  • Next by Date: Re: @distinctUnionOfArrays problem
  • 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