• 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: Graham Cox <email@hidden>
  • Date: Sat, 13 Feb 2010 08:56:49 +1100

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: 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: @distinctUnionOfArrays problem
  • Next by Date: Re: Connected Objects being allocated
  • 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