Re: Creating NSViews with code.
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