dragging windows

William Ehrich ehrich at mninter.net
Fri Feb 1 15:46:11 PST 2008


Shawn Erickson wrote:

>> Some programs, like Net Monitor, have windows with no title bar
>> that can be dragged form any place. My programs did that when I was
>> writing software. It's easy with Carbon, but I don't know about
>> Cocoa. 

> <http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/setMovableByWindowBackground:>
 
Thanks. This sounds like just what I wanted. I wish more programmers would use it. (A wish addressed to programmers who read this list.)

>> Apple might even suggest it in their human interface guidelines.

> <http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGWindows/chapter_18_section_3.html#//apple_ref/doc/uid/20000961-TPXREF10>
 
This says that "Even if a window does not have an actual title (a tools panel, for example), it should have a title bar so that users can move the window." But your other reference makes the title bar unnecessary letting me use the uncluttered plain windows that I prefer.

-- Bill Ehrich


More information about the MacOSX-talk mailing list