• 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
Saving Window positions in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Saving Window positions in Cocoa


  • Subject: Saving Window positions in Cocoa
  • From: Michael Emfinger <email@hidden>
  • Date: Thu, 24 Jan 2002 18:14:42 -0800

Hello,

I'm attempting to save the window position on a fixed size window with no
results.

In the window controller Init function I'm calling:
[[self window] setFrameUsingName:@"WindowPosition" force: YES];


..while in the windowWillClose function I'm calling:
[[self window] saveFrameUsingName:@"WindowPosition"];

Nothing is being saved though.

I'm aware that autosave name doesn't work unless you re-size a window, but
this one isn't re-sizable anyway and I'm not setting an autosave name in the
nib.

The code listed here *does* work in one of my apps, but in this particular
case it's not saving anything. Any help on what I might be missing would be
greatly appreciated.

Thanks!

Michael Emfinger
Software Engineer
Symantec Corporation
Peter Norton Group


  • Follow-Ups:
    • Re: Saving Window positions in Cocoa
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: Re: Populate "NSLinkAttributeName" attribute from RTF?
  • Next by Date: Re: Nib owner's outlets
  • Previous by thread: Headers in an NSBrowser?
  • Next by thread: Re: Saving Window positions in Cocoa
  • Index(es):
    • Date
    • Thread