• 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: Finding a view (Cocoa theory)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding a view (Cocoa theory)


  • Subject: Re: Finding a view (Cocoa theory)
  • From: mark <email@hidden>
  • Date: Sat, 19 Feb 2005 08:37:50 -0800

The tag method would seem to work; however, if I drag in a "custom view"
from IB to use as my view "container", the only property available is
"Hidden" in the attributes panel.  A tag would only be useful if I could set
it in IB; otherwise an outlet seems to be the better solutionŠ

Thanks,

Mark

> From: Carl Gieringer <email@hidden>
> I see what you mean, now.  Look at NSControl's - tag method.
>
> http://developer.apple.com/documentation/Cocoa/Reference/
> ApplicationKit/ObjC_classic/Classes/NSControl.html
>
> Although I have not used tags, they appear to be exactly what you need.
> You can set the tags programmatically (setTag) or in IB via the
> attributes in the inspector.  You would need some reference to your
> inspector's window, and then you could recursively examine it's
> contentView's subviews, seeing if the tag is any particular value that
> you set it.
>
> (I am glad that this subject came up; I have a window with which I
> could use this tag method to enable/disable controls in it...)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Finding a view (Cocoa theory)
      • From: Ricky Sharp <email@hidden>
References: 
 >Re: Finding a view (Cocoa theory) (From: Carl Gieringer <email@hidden>)

  • Prev by Date: Problem with a framework with a nib
  • Next by Date: Re: Listening to bindings
  • Previous by thread: Re: Finding a view (Cocoa theory)
  • Next by thread: Re: Finding a view (Cocoa theory)
  • Index(es):
    • Date
    • Thread