Re: Creating NSViews with code.
Re: Creating NSViews with code.
- Subject: Re: Creating NSViews with code.
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 16 Feb 2005 22:09:57 +0100
On mercredi, février 16, 2005, at 09:26 PM, Coleman Nitroy wrote:
I need to have 8 different setups of a window. Basically think of a
CAD application and allowing the user how they want to view the 3
dimensions (2 panes, 3 panes, 4 panes, in different configurations ...
). Which would be the best way of doing this:
Programmatically adding the views
Having multiple nibs for each different setup and loading the
respective one
Having separate windows for each view and let the user go wild.
I have been trying to stay away from the separate windows option just
because it seems like it would be more complicated for both coder
(myself) and users.
Also if programmatically setting up the views sounds like the best
option, how do I do this. I cannot find anything on setting up views
that goes into any form of depth.
In the NSView documentation.
addSubview:
removeFromSuperview:
As for creating the view, if your own view is a subclass of NSView, you
can use alloc and initWithFrame:.
To modify the location of a view, you can use setFrame: or another
related method.
_______________________________________________
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