Re: disable animation of default button
Re: disable animation of default button
- Subject: Re: disable animation of default button
- From: Lee Ann Rucker <email@hidden>
- Date: Wed, 13 Oct 2010 18:26:17 -0700
- Acceptlanguage: en-US
- Thread-topic: disable animation of default button
Try a different bezel. Any of the other push button styles should work fine (gradient, textured, etc) if you're doing your own drawing.
On Oct 13, 2010, at 4:22 PM, Georg Seifert wrote:
> Hi,
>
> I have a subclass of NSButton. The bezel style is set to "Push". If the button has the return key equivalent and becoming the default button (drawn blue) the "- (void) drawBezelWithFrame:(NSRect)cellFrame inView:(NSView *)controlView method gets called over end over again. In the standard implementation this makes the button pulse.
>
> I want to disable this for my subclass but can’t find the case of the redraw.
>
> Regards
> Georg S
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden