Hi there.

In Unity, we are drawing our own window decorations (there's a lot of 
detachable tabs being dragged around), and I have an issue about which window 
goes to front when a user closes a borderless window.

Essentially, Unity has 1 normal NSWindow (with titlebar, min/max buttons, etc). 
Users can tear parts off this window into freely-movable windows. These 
auxilarry windows are a subclass of NSWindow with NSBorderlessWindowMask. We do 
the classic -(BOOL) canBecomeKeyWindow{return YES;} trick to make keyboard 
focus work. These windows are at the same level as normal windows (=not 
floating)

The problem comes when the user has created two AUX windows in addition to the 
"main" one. When one AUX window is closed, the main window always gets keyboard 
focus, even if the other aux window was is in front. I'm looking for a way to 
solve this.

Any hints? Sorry to bother you, but I'm drawing a blank in my google searches 
and I figured I'd try here.

Thanks in advance,
Nicholas

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to