• 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
Re: NSWindow not restoring location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow not restoring location


  • Subject: Re: NSWindow not restoring location
  • From: Pierre-Olivier Latour <email@hidden>
  • Date: Thu, 11 Jul 2002 11:55:12 +0200

> So, the solution is to call [NSWindowController setShouldCascadeWindows:NO]
> in your NSWindowController subclass to turn this behavior off for the
> controller of any singleton window you are trying to position. After that,
> it should explicitly restore the position no matter where it was previously
> located. Just make sure to set your autosave name properly and call [window
> setFrameUsingName:] in [NSWindowController windowDidLoad].

That seems to be an interesting solution, but how would do you do that if
you're building a non-document-based Cocoa application (i.e. Without any
NSWindowController)? I have this window positioning problem that appears
sometimes in my Cocoa apps.


_____________________________________________________________

Pierre-Olivier Latour email@hidden
Manager and Lead Programmer
French Touch software http://www.french-touch.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSWindow not restoring location
      • From: Brock Brandenberg <email@hidden>
References: 
 >Re: NSWindow not restoring location (From: Brock Brandenberg <email@hidden>)

  • Prev by Date: Re: NSWindow not restoring location
  • Next by Date: Drag and drop custom classes
  • Previous by thread: Re: NSWindow not restoring location
  • Next by thread: Re: NSWindow not restoring location
  • Index(es):
    • Date
    • Thread