Re: Knowing when font panel is visible

2011-09-04 Thread wadeslists
> Pragmatically, you can set a repeating NSTimer of (say) 0.1 secs and poll the > panel visibility. The processing load in minuscule, and the UI lag is > basically undetectable. That's a bad assumption. Short, periodic timers can muck with the system's power management, ultimately wasting powe

Re: Knowing when font panel is visible

2011-09-04 Thread Antonio Nunes
On 4 Sep 2011, at 10:39, Quincey Morris wrote: > On Sep 4, 2011, at 00:40 , Antonio Nunes wrote: > >> I have a control that needs to be highlighted when the font panel is >> visible. This turns out not to be an easy task. I can't find any >> notifications that will be triggered whenever the fon

Re: Knowing when font panel is visible

2011-09-04 Thread Antonio Nunes
On 4 Sep 2011, at 11:05, jonat...@mugginsoft.com wrote: > FWIW On OS X 10.7.1 I couldn't successfully change the font panel class > either. Hm, probably time for a trip to the BugReporter. -António There is a world of difference between sear

Re: Knowing when font panel is visible

2011-09-04 Thread jonat...@mugginsoft.com
On 4 Sep 2011, at 08:40, Antonio Nunes wrote: > I tried subclassing NSFontPanel by doing the following: > > - (void)applicationWillFinishLaunching:(NSNotification *)aNotification > { > [NSFontManager setFontPanelFactory:[MY_FontPanel class]]; > } > > but it doesn't appear to work. The fon

Re: Knowing when font panel is visible

2011-09-04 Thread Quincey Morris
On Sep 4, 2011, at 01:45 , Antonio Nunes wrote: > Because I need to know when the status changes, rather then simply whether it > is visible. Pragmatically, you can set a repeating NSTimer of (say) 0.1 secs and poll the panel visibility. The processing load in minuscule, and the UI lag is basic

Re: Knowing when font panel is visible

2011-09-04 Thread Antonio Nunes
On 4 Sep 2011, at 10:39, Quincey Morris wrote: >> I have a control that needs to be highlighted when the font panel is >> visible. This turns out not to be an easy task. I can't find any >> notifications that will be triggered whenever the font panel is shown or is >> hidden. > > Why can't you

Re: Knowing when font panel is visible

2011-09-04 Thread Antonio Nunes
On 4 Sep 2011, at 10:39, Quincey Morris wrote: >> I have a control that needs to be highlighted when the font panel is >> visible. This turns out not to be an easy task. I can't find any >> notifications that will be triggered whenever the font panel is shown or is >> hidden. > > Why can't yo

Re: Knowing when font panel is visible

2011-09-04 Thread Quincey Morris
On Sep 4, 2011, at 00:40 , Antonio Nunes wrote: > I have a control that needs to be highlighted when the font panel is visible. > This turns out not to be an easy task. I can't find any notifications that > will be triggered whenever the font panel is shown or is hidden. Why can't you use '[[NS