Re: NSButton alloc creates NSControl??
Re: NSButton alloc creates NSControl??
- Subject: Re: NSButton alloc creates NSControl??
- From: Ondra Cada <email@hidden>
- Date: Tue, 16 Apr 2002 08:51:55 +0200
On Tuesday, April 16, 2002, at 05:10 , Stevos wrote:
ball = [[NSButton alloc] initWithFrame: tempFrame];
[ball setButtonType:NSMomentaryChangeButton];
Apparently "NSControl does not respond to setButtonType"
Except... Ball ain't a NSControl, its a NSButton..and NSButton DOES
respond
to it.
How should the compiler know? If you declared
NSButton *ball;
it would, but I fear you declared it 'NSControl *ball", and thus it can't.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.