Newbie question on NSControl
Newbie question on NSControl
- Subject: Newbie question on NSControl
- From: Rob Crawford <email@hidden>
- Date: Fri, 04 Jan 2002 17:16:03 -0500
Thanks in advance!
I would like to create a custom control that draw's differenctly depending
on the value that is in the control. This is my header file:
@interface ExampleView : NSControl
{
}
- (void)drawRect:(NSRect)aRect;
Question 1.
What else do I need to override so when the value gets changed the drawRect
method gets called?
Question 2.
How can I get IB to let me put in the default value for this control so that
it will draw correctly the first time?