For borderless windows (created using NSBorderlessWindowMask), I hit my head until I came up with the following modification for Francis:
- (void) activeSpaceDidChange:(NSNotification *)aNotification {
if ([NSApp isActive])
{
NSRect windowRect = [[self window] frame];
[[self window] setStyleMask:NSTitledWindowMask];
[[self window] setStyleMask:NSBorderlessWindowMask];
[[self window] setFrame:windowRect display:YES];
[[NSApplication sharedApplication] activateIgnoringOtherApps : YES];
}
}
, , , , . "Titled", "activateIgnoringOtherApps", " ", , , . , , , , . , - , , .