Re: First click when activated
Re: First click when activated
- Subject: Re: First click when activated
- From: Joachim Deelen <email@hidden>
- Date: Tue, 9 May 2006 19:58:59 +0200
Isn't this done by "click-through"
Take a look here:
http://developer.apple.com/documentation/UserExperience/Conceptual/
OSXHIGuidelines/XHIGWindows/chapter_17_section_4.html#//apple_ref/doc/
uid/20000961-TPXREF20
Since "click-through" for cocoa is on by default, switching it off
might solve your problem.
If you read the doc, you'll see, that switching this on, will bring
on the action on the first click, even if the window is not active.
Switching this off, will activate the window with the first click
and bring on the action on the second.
Maybe I'm wrong here, but this is how I understand this doc.
regards
Joachim
Am 09.05.2006 um 17:46 schrieb j o a r:
On 9 maj 2006, at 15.46, A.M. wrote:
If you want to do this for an entire window, one solution is to
drop a
transparent window over the existing window, however, this
behavior would
probably be unexpected and non-HIG-compliant.
That was a spectacularly bad suggestion...
You need to enhance your user interface validation routines to: [1]
Notice changes to the key window (there are notifications /
delegate methods for this, check the documentation for NSWindow),
and [2] to return the proper enabled / disabled value matching the
current state of the window.
For items in a NSToolbar things are easier, as they will validate
automatically when the window changes key state, so the only thing
you need to do in that case is to fix the validation routine.
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden