• 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: Creating NSViews with code.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Creating NSViews with code.
      • From: Coleman Nitroy <email@hidden>
    • Re: Creating NSViews with code.
      • From: j o a r <email@hidden>
References: 
 >Creating NSViews with code. (From: Coleman Nitroy <email@hidden>)

  • Prev by Date: login item for all users
  • Next by Date: Re: Creating NSViews with code.
  • Previous by thread: Re: Creating NSViews with code.
  • Next by thread: Re: Creating NSViews with code.
  • Index(es):
    • Date
    • Thread