Skip navigation.
 
mlRe: NSWindow: Custom title bar double-click action?
FROM : Kyle Sluder
DATE : Wed Jan 16 23:38:15 2008

On 1/16/08, <email_removed> <<email_removed>> wrote:
> Hello,
>
> I have a "mini-HUD" the user can
> enable via the application menu, and would like to set up a custom
> title bar double-click action as a more convenient way to switch to
> this mini-mode. Only problem is I cannot find any documentation on how
> to do this. Any pointers?


Why are you redefining this behavior?  I double-click to minimize
things all the time; your app would frustrate me and I would not use
it.  I don't care why you think your behavior is superior, I (and your
users) will not tolerate your disdain for established behavior.

Instead you might want to consider how iTunes overrides the zoom
button behavior to switch to its mini-mode.  Note that it still lets
you double-click on the mini-mode window's surface to minimize to the
dock.  Override -[NSWindow performZoom:] to implement this behavior.

--Kyle Sluder

Related mailsAuthorDate
mlNSWindow: Custom title bar double-click action? slasktrattenator Jan 16, 22:30
mlRe: NSWindow: Custom title bar double-click action? Kyle Sluder Jan 16, 23:38
mlRe: NSWindow: Custom title bar double-click action? slasktrattenator Jan 17, 00:37