• 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: Loading a custom view and its subviews from a nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading a custom view and its subviews from a nib


  • Subject: Re: Loading a custom view and its subviews from a nib
  • From: Henri Lamiraux <email@hidden>
  • Date: Mon, 14 Jan 2002 12:32:19 -0800

You can create stand alone views in IB (view without a window). There is
no need to do what described below anymore. Simply drag a custom view to
the document window.

On Monday, January 14, 2002, at 11:28 AM, Matt Neuburg wrote:

> What I do is to group the custom view instance into a box and make an
> outlet to the box. Thus, my view is the box's contentView. I can now
> replace some other object's contentView with it. So for example (this is
> pretty much just lifted right out of the Learning Cocoa book):
>
> aView = [[myBox contentView] retain];
> [aView removeFromSuperview];
> [ourWindow setContentView: aView]; // or whatever
> [aView release];


References: 
 >Re: Loading a custom view and its subviews from a nib (From: Matt Neuburg <email@hidden>)

  • Prev by Date: How to highlight an image with transparency
  • Next by Date: Re: Cocoa Documentation Updated for December Tools Release
  • Previous by thread: Re: Loading a custom view and its subviews from a nib
  • Next by thread: Re: Loading a custom view and its subviews from a nib
  • Index(es):
    • Date
    • Thread