Re: Creating NSButton in Code does not set controlTint to currentControlTint
Re: Creating NSButton in Code does not set controlTint to currentControlTint
- Subject: Re: Creating NSButton in Code does not set controlTint to currentControlTint
- From: Peter Teeson <email@hidden>
- Date: Mon, 30 Dec 2013 12:48:09 -0500
On 2013-12-28, at 5:03 PM, Peter Teeson <email@hidden> wrote:
> On 2013-12-28, at 11:43 AM, Kyle Sluder <email@hidden> wrote:
>> You can try out my ButtonTester tool to play with these flags in real
>> time: <https://github.com/kylesluder/ButtonTester>
> Wow you are definitely amazing. I had just started working on a project to do just that sort of thing.
> You did it first (and surely better than I would have done.) I tip my hat to you and thanks.
Well I finally got it to work the way I wanted to.
_Cancel= [[NSButton alloc]initWithFrame:theButtonFrame];
[_Cancel setTitle:@"Cancel"];
[_Cancel setButtonType:NSMomentaryPushInButton ];
[_Cancel setState:NSOffState];
[_Cancel setBordered:YES];
[_Cancel setBezelStyle:NSRoundedBezelStyle];
[theContentView addSubview:_Cancel];
Thanks to all for your patience, kind advice and support.
I wish you a Healthy, Happy, and Prosperous 2014.
respect….
Peter
_______________________________________________
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