Displaying Windows While in Full Screen mode
Displaying Windows While in Full Screen mode
- Subject: Displaying Windows While in Full Screen mode
- From: Matthew Cox <email@hidden>
- Date: Mon, 3 Sep 2001 17:30:50 -0400
Okay, I want to load a simple about window, and show it on top of the
full screen view, in this case [panel contentView], so, here's the code
I wrote for this controller, obviously it inherits from
NSWindowController:
@implementation AboutController
+ (id)sharedAboutController
{
static AboutController *cont = nil;
if(cont == nil)
cont = [[AboutController alloc] init];
return cont;
}
- (IBAction)showWindow:(id)sender
{
[super showWindow:sender];
[[super window] setLevel:(CGShieldingWindowLevel() + 6)]; //Note,
first I started at 1, then added a ludicrous value to see if that worked.
}
@end
The method that displays (in the app delegate/panel controller)
- (IBAction)showAbout:(id)sender
{
[[AboutController sharedAboutController] showWindow:sender];
}
This window is pretty much a standard NSWindow, except that later on, I
will be creating special methods in the delegate to handle minimization,
since the dock is hidden, it will be entered into an NSTableView. So:
- A) How can I get this thing to display
- B) Can we do custom window styles under Cocoa? If so, API/Classes?
- C) Am I doing anything "wrong" with my code?