• 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: 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
References: 
 >Creating NSViews with code. (From: Coleman Nitroy <email@hidden>)

  • Prev by Date: Re: How to get image of a WebView???
  • Next by Date: Re: affine transformation of bitmap images
  • Previous by thread: Creating NSViews with code.
  • Next by thread: RE: Creating NSViews with code.
  • Index(es):
    • Date
    • Thread