Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-30 Thread Peter Teeson
On 2013-12-28, at 5:03 PM, Peter Teeson wrote: > On 2013-12-28, at 11:43 AM, Kyle Sluder wrote: >> You can try out my ButtonTester tool to play with these flags in real >> time: > Wow you are definitely amazing. I had just started working on a project

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Peter Teeson
On 2013-12-28, at 11:43 AM, Kyle Sluder wrote: > You can try out my ButtonTester tool to play with these flags in real > time: 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

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Kyle Sluder
On Sat, Dec 28, 2013, at 06:05 AM, Uli Kusterer wrote: > Are you perhaps trying to implement “sticky” buttons? I.e. buttons that > toggle between on and off when clicked? These haven’t highlighted in > blue for a long time No, they still highlight in blue (or gray if your control tint is Graphi

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Uli Kusterer
On 28 Dec 2013, at 14:39, Uli Kusterer wrote: >> To repeat… I expected the above code to produce a button which when pressed >> displays the Blue Aqua tint. It doesn't! Why not? >> Why does it show the Aqua tint if I set up the exact same button using IB >> and let it be instantiated from the ni

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Uli Kusterer
On 28 Dec 2013, at 14:39, Uli Kusterer wrote: > The only things in 10.0 that used the tint were Rounded (highlight/default > buttons) and Circle bezel buttons (only to highlight), menu selections, tab > controls, popup buttons, segmented controls, progress bars and scroll bars. > Also the apple

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-28 Thread Uli Kusterer
On 27 Dec 2013, at 04:08, Peter Teeson wrote: > On 2013-12-26, at 7:01 PM, Uli Kusterer wrote: >> On 26 Dec 2013, at 18:49, Peter Teeson wrote: >>> _Cancel = [[NSButton alloc]init]; >>> [_Cancel setFrame:theButtonFrame]; >>> [_Cancel setNeedsDisplay:YES]; >> >> Several issues here: >>

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-27 Thread Peter Teeson
On 2013-12-27, at 12:31 AM, Kyle Sluder wrote: > On Thu, Dec 26, 2013, at 07:08 PM, Peter Teeson wrote: >>[_Cancel setBezelStyle:NSShadowlessSquareBezelStyle]; > Ah. I think I've found (part of) your problem. > NSShadowlessSquareBezelStyle does not and to my knowledge has never > supported ti

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-27 Thread Peter Teeson
On 2013-12-27, at 12:45 AM, Quincey Morris wrote: > Perhaps the problem was that the button was coming out graphite regardless of > the system setting, but your latest test doesn’t confirm that. Bingo! The system setting (Preferences Appearance) was Blue which is what is is when you install eve

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Quincey Morris
On Dec 26, 2013, at 20:39 , Kyle Sluder wrote: > What are you two talking about? I was talking about what Uli was talking about, using that as an excuse to be unencumbered by the thought process. However, if I can re-ask what I was getting at before, does it make any sense for Peter to be try

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Kyle Sluder
On Thu, Dec 26, 2013, at 07:08 PM, Peter Teeson wrote: > [_Cancel setBezelStyle:NSShadowlessSquareBezelStyle]; Ah. I think I've found (part of) your problem. NSShadowlessSquareBezelStyle does not and to my knowledge has never supported tinting with the user's tint color. To my knowledge, the

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Kyle Sluder
On Thu, Dec 26, 2013, at 08:06 PM, Quincey Morris wrote: > However, also consider Uii’s other, implied point: you may be wasting > your time because the concept of button tinting in current versions of OS > X has simply gone away. What are you two talking about? Go try it for yourself. System Pref

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Quincey Morris
On Dec 26, 2013, at 18:49 , Peter Teeson wrote: >> On Dec 26, 2013, at 09:49 , Peter Teeson wrote: >>> Sets the receiver’s control tint. >>> - (void)setControlTint:(NSControlTint)controlTint >>> Parameters >>> controlTint >>> An Designated Initializers value that specifies the tint of the receiv

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
On 2013-12-26, at 7:01 PM, Uli Kusterer wrote: > On 26 Dec 2013, at 18:49, Peter Teeson wrote: >> _Cancel = [[NSButton alloc]init]; >> [_Cancel setFrame:theButtonFrame]; >> [_Cancel setNeedsDisplay:YES]; > > Several issues here: > > 1) Control tints only apply to window widgets, focus bor

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
On 2013-12-26, at 6:44 PM, Quincey Morris wrote: > On Dec 26, 2013, at 09:49 , Peter Teeson wrote: >> Sets the receiver’s control tint. >> - (void)setControlTint:(NSControlTint)controlTint >> Parameters >> controlTint >> An Designated Initializers value that specifies the tint of the receiver. >

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Uli Kusterer
On 26 Dec 2013, at 18:49, Peter Teeson wrote: >_Cancel = [[NSButton alloc]init]; >[_Cancel setFrame:theButtonFrame]; >[_Cancel setNeedsDisplay:YES]; Several issues here: 1) Control tints only apply to window widgets, focus borders, token capsules and to Aqua UI. MacOS X 10.7 removed

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Quincey Morris
On Dec 26, 2013, at 09:49 , Peter Teeson wrote: > Sets the receiver’s control tint. > - (void)setControlTint:(NSControlTint)controlTint > Parameters > controlTint > An Designated Initializers value that specifies the tint of the receiver. > > Changing the instantiation code to this makes no diff

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
Thanks for your kind reply. On 2013-12-26, at 4:51 PM, Keary Suska wrote: > On Dec 26, 2013, at 10:49 AM, Peter Teeson wrote: > If you need something other than the default, I imagine you are expected to > set it yourself. I've checked what the cell's controlTint is immediately after being inst

Re: Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Keary Suska
On Dec 26, 2013, at 10:49 AM, Peter Teeson wrote: > The documentation in the NSCell Class Reference states: > Designated Initializers > When subclassing NSCell you must implement all of the designated > initializers. > Those methods are: init, initWithCoder:, initTextCell:, and initImageCell:. >

Creating NSButton in Code does not set controlTint to currentControlTint

2013-12-26 Thread Peter Teeson
MountainLion 10.8.5, Xcode 5.0.2 My code creates some objects in code rather than using IB. This creates an NS Button, tests for the currentControlTint and the Cell controlTint. @interface Document : NSDocument ……… @property NSButton *Cancel; @property NSButton *Check; @end @implementation Docum