• 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: Non window nibs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non window nibs?


  • Subject: Re: Non window nibs?
  • From: prince <email@hidden>
  • Date: Mon, 21 Apr 2003 15:20:57 -0700

I think what you want is a custom view. You can drag from the IB palette the CustomView (next to NSBox) into your Instances pane and get a custom NSView instantiated. Layout whatever you want in it, and then at run time, set the contentView of the NSBox or NSDrawer or whatever in your window to be this custom view.

For instance, if you have a window that has two modes where the window changes significantly between them, you can put an NSBox in there (with no title and not bounding box) and just set its view to the custom view appropriate for the mode.

The CustomView just acts like a container for your components.

Jay

On Monday, April 21, 2003, at 02:06 PM, Yang, Liu wrote:

Can you use IB to lay out your components into a container that is not a
window? If you can save that layout into a nib and embed this nib into other
window nibs that would be great. Does any one know how to do it?

Thanks.

- Liu
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: strange malloc error
  • Next by Date: Type to select a row in NSTableView?
  • Previous by thread: Re: Non window nibs?
  • Next by thread: strange malloc error
  • Index(es):
    • Date
    • Thread