• 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 Windows While in Full Screen mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


  • Prev by Date: Re: Another controversial question
  • Next by Date: ANNOUNCE: Intro to ObjC For C++ Programmers
  • Previous by thread: KeyBoard Events
  • Next by thread: ANNOUNCE: Intro to ObjC For C++ Programmers
  • Index(es):
    • Date
    • Thread