RE: Creating NSViews with code.
RE: Creating NSViews with code.
- Subject: RE: Creating NSViews with code.
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Wed, 16 Feb 2005 18:27:22 -0500
- Importance: Normal
> 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
Not unless your views are really simple, trivial things. Even then, I
probably wouldn't.
> Having multiple nibs for each different setup and loading the
> respective one
Bingo!
> Having separate windows for each view and let the user go wild.
Seems cluttery.
>
> 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.
Read the NSView docs. initWithFrame: & addSubview: are your friends.
Jonathan
_______________________________________________
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