Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying a window in full screen mode (&&)||(||) Custom Window Shapes



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() + 8765)]; //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?




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.