• 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: IB hierarchy question…
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: IB hierarchy question Š
      • From: mark <email@hidden>
References: 
 >IB hierarchy question… (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
  • Next by Date: Re: calling Java for ObjC
  • Previous by thread: IB hierarchy question…
  • Next by thread: Re: IB hierarchy question Š
  • Index(es):
    • Date
    • Thread