Re: NSButton alloc creates NSControl??
Re: NSButton alloc creates NSControl??
- Subject: Re: NSButton alloc creates NSControl??
- From: Jonathan Feinberg <email@hidden>
- Date: Mon, 15 Apr 2002 23:23:57 -0400
On 4/15/02 Stevos <email@hidden> 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
In the header file where the variable "ball" is declared, it says
NSControl *ball;
If you change the declaration to
NSButton *ball;
you will no longer get that warning.
--
Jonathan Feinberg email@hidden Inwood, NY, NY
http://MrFeinberg.com
_______________________________________________
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.