• 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: "M. Uli Kusterer" <email@hidden>
  • Date: Fri, 18 Feb 2005 15:07:42 +0100

At 15:26 Uhr -0500 16.02.2005, Coleman Nitroy wrote:
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.

This is getting to be an FAQ...

Anyway, essentially there's nothing special about it. You alloc/init a view like any other object (initWithFrame: for most views, though some have other initializers), and then you just add them to another view (e.g. a window's content view) as a subview. Looking through NSView's and NSWindow's reference docs should tell you what the methods to do this are exactly named.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: System Provided Font Menu?
  • Next by Date: NSView unit scale question ?
  • Previous by thread: Re: Creating NSViews with code.
  • Next by thread: Re: Creating NSViews with code.
  • Index(es):
    • Date
    • Thread