Hi,
Sorry, for stupid question. I can't to draw line in NSView control.
Requirements are next:
- I have NSView and NSButton controls on the window.
- When I click button line should draw in the NSView control.
What should I type in my pushButtonAction ?
I allready typed:
I use Xcode 3.1 and Leopard 10.5.6
Thanks in advance.
Sorry, for stupid question. I can't to draw line in NSView control.
Requirements are next:
- I have NSView and NSButton controls on the window.
- When I click button line should draw in the NSView control.
What should I type in my pushButtonAction ?
I allready typed:
- (IBAction) pushButtonAction: (id)sender {
NSGraphicsContext* theContext = [NSGraphicsContext currentContext];
}
I use Xcode 3.1 and Leopard 10.5.6
Thanks in advance.