• 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
set/saveFrameUsingName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set/saveFrameUsingName


  • Subject: set/saveFrameUsingName
  • From: Jeremy Dronfield <email@hidden>
  • Date: Thu, 4 Jul 2002 21:00:37 +0100

The documentation for windows & panels says:

An NSWindow can store its placement in the user defaults system, so that
it appears in the same location the next time the user starts the
application. The saveFrameUsingName: method stores the frame rectangle,
and setFrameUsingName: sets it from the value in user defaults.

Not in my application it doesn't. I can get it to save and set the SIZE
of a window, but not its placement on screen. When I quit and relaunch
and open the window, it appears with its saved size, but in its default
location in the top left of the screen. I've checked that the frame
isn't locked in IB, and I've tried it with both springy and straight
'wires'. Is this a bug?
- Jeremy.
_______________________________________________
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: set/saveFrameUsingName
      • From: Nicholas Riley <email@hidden>
  • Prev by Date: Re: Cocoa stripping resource forks: does Jaguar fix?
  • Next by Date: Re: set/saveFrameUsingName
  • Previous by thread: Re: overriding the initialiser of a NSTextfield subclass
  • Next by thread: Re: set/saveFrameUsingName
  • Index(es):
    • Date
    • Thread