NSButton alloc creates NSControl??
NSButton alloc creates NSControl??
- Subject: NSButton alloc creates NSControl??
- From: Stevos <email@hidden>
- Date: Mon, 15 Apr 2002 22:10:08 -0500
This code looks all good and stuff to me, but it gets a warning.
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. Have I found a bug here or am I just being stupid?
Thanks in advance
-Stevos
_______________________________________________
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.