Re: Finding a view (Cocoa theory)
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