Re: cocoa-dev digest, Vol 1 #312 - 16 msgs
Re: cocoa-dev digest, Vol 1 #312 - 16 msgs
- Subject: Re: cocoa-dev digest, Vol 1 #312 - 16 msgs
- From: Jeff Sickel <email@hidden>
- Date: Mon, 23 Jul 2001 20:31:09 -0500
On Monday, July 23, 2001, at 12:33 PM, John Tsombakos wrote:
>
Hi. I'm just in the learning stages of Cocoa, and want to
>
try to just draw a string in an NSView or even just do some
>
drawing. I assume that I need to use a subclass of NSView,
>
and override the DrawRect message(?) and in Interface
>
Builder drag the "Custom Class" item into my window. (I
>
guess). How would I go about this? Maybe set it up so when I
>
click a button, my drawing routine is called.
I've been meaning to write up a little bit about eBookfaces and make the
source available - I just haven't had time to put it out to pasture yet
(aside from the numerous bugs to be fixed). It actually addresses your
question quite well - both as subclassing NSView to draw text and using
NSText classes to draw text on the screen.
If there's an interest I can either put the source up for download or
just email it to you (I'll be putting it up on a web site one day, so I
could just send you a url if you like).
jas