Re: IB hierarchy question…
Re: IB hierarchy question…
- Subject: Re: IB hierarchy question…
- From: Shawn Erickson <email@hidden>
- Date: Wed, 5 Jan 2005 20:26:02 -0800
On Jan 5, 2005, at 7:46 PM, Mark Dawson wrote:
Is there a way to view the hierarchy of a window in IB (I'm using
XCode 1.5).
I wanted something like:
NSWindow
NSScrollerView
NSCustomView
Or does Cocoa not really have hierarchies?
No Cocoa supports and in fact often depends on a hierarchy of views.
Reviewing the documentation on views will make this clear (in
particular
<http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/
Concepts/ViewHierarchy.html>).
Also it is more like...
NSWindow
NSView (content view)
NSScrollerView
MyCustomView
If you look at the nib window in IB notice the two small control in the
scroll bar on the right side. Click on the lower one to toggle to see
the object hierarchy that you have defined.
I am gonna guess that you are trying to figure out how to make some
view a sub-view of another view in IB. In this case simply select your
custom view, pull down the "Layout" menu and select the required option
from the "Make subviews of" sub-menu.
-Shawn
_______________________________________________
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