• 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
controlling windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

controlling windows


  • Subject: controlling windows
  • From: Peter Sichel <email@hidden>
  • Date: Fri, 21 Sep 2001 14:39:53 -0400

I'm having trouble opening windows as key and restoring
their position.

I have an app with several windows each with its own nib file.
From the window menu, I invoke a simple target object to load
and display the window using a subclass of NSWindowController
like this:

- (IBAction)showWindow:(id)sender
{
pingWindowController = [[PingWindowController alloc]
initWithWindowNibName:@"Ping" owner:sender];
[pingWindowController setWindowFrameAutosaveName:@"Ping"];
[pingWindowController showWindow:sender];
[[pingWindowController window] makeKeyAndOrderFront:sender];
}

The window does not acquire input focus until I click in it.
What could be preventing this?

How do I save and restore the window position?
[the window is not resize able].

- Peter
--


References: 
 >Re: Aqua Interface Guidelines & Close Window location (From: John Geleynse <email@hidden>)
 >Re: Aqua Interface Guidelines & Close Window location (From: Ondra Cada <email@hidden>)
 >Re: Aqua Interface Guidelines & Close Window location (From: Rosyna <email@hidden>)

  • Prev by Date: Re: static typing (Learning Cocoa Chapter 13)
  • Next by Date: Re: static typing (Learning Cocoa Chapter 13)
  • Previous by thread: Re: Aqua Interface Guidelines & Close Window location
  • Next by thread: Save To?
  • Index(es):
    • Date
    • Thread