Newbie Cocoa Question - Drawing Text
Newbie Cocoa Question - Drawing Text
- Subject: Newbie Cocoa Question - Drawing Text
- From: "John Tsombakos" <email@hidden>
- Date: Mon, 23 Jul 2001 13:29:51 -0400
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.
Help! I've been reading everything about Cocoa whereever I
can find it, but I haven't seen anything about basic things
like this.
Thanks!
John T.