FROM : Henri Lamiraux
DATE : Mon Jan 14 21:32:19 2002
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];
DATE : Mon Jan 14 21:32:19 2002
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];
| Related mails | Author | Date |
|---|---|---|
| Robert Miller | Jan 11, 16:39 | |
| Stéphane Sudre | Jan 11, 17:38 | |
| Markus Hitter | Jan 12, 13:20 | |
| Matt Neuburg | Jan 14, 20:28 | |
| Henri Lamiraux | Jan 14, 21:32 | |
| Ondra Cada | Jan 15, 00:08 |






Cocoa mail archive

