• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Displaying a window in full screen mode (&&)||(||) Custom Window Shapes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Displaying a window in full screen mode (&&)||(||) Custom Window Shapes
  • From: Matthew Cox <email@hidden>
  • Date: Tue, 4 Sep 2001 18:42:06 -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() + 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?


  • Prev by Date: Re: Any advantages of Unix formatting
  • Next by Date: Re: ObjC API != Cocoa (Re: Another controversial question)
  • Previous by thread: Re: sliding views in Mail.app
  • Next by thread: Can't change title of top-level menu
  • Index(es):
    • Date
    • Thread