• 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: Store window size and location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Store window size and location


  • Subject: Re: Store window size and location
  • From: Kyle Moffett <email@hidden>
  • Date: Mon, 19 Aug 2002 15:33:33 -0400

On Monday, August 19, 2002, at 12:16 PM, Tony S. Wu wrote:

Now I have these two lines in windowControllerDidLoadNib:

[window setFrameUsingName: @"MyWindow"];
[window setFrameAutosaveName: @"MyWindow"];

But it doesn't seem to store the window size like it did with the "Simple
Toolbar" sample.
Could anyone tell me what the problem might be?
I've checked both my codes and the nib files, didn't spot anything.
Thanks.

Tony S. Wu
email@hidden

"Nope, this world ain't perfect. But at least I know it's not because of
me."

Somewhere you've got to [window saveFrameUsingName: @"MyWindow"]
so that the size is written down in your prefs. Then use only
[setFrameUsingName:@"MyWindow"] in windowControllerDidLoadNib

HTH,
Kyle Moffett
_______________________________________________
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.

References: 
 >RE: Store window size and location (From: "Tony S. Wu" <email@hidden>)

  • Prev by Date: SystemIcons.bundle
  • Next by Date: Re: Monitoring class loading
  • Previous by thread: RE: Store window size and location
  • Next by thread: [newbie] How to discover a file's Creation date?
  • Index(es):
    • Date
    • Thread