• 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
Autosaving a window's frame
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autosaving a window's frame


  • Subject: Autosaving a window's frame
  • From: Jim Menard <email@hidden>
  • Date: Fri, 28 Jun 2002 08:06:38 -0500

Autosave doesn't, at least not if I simply specify the window's "Auto Save
Name" in IB's inspector for that window. Why is the call to
setFrameUsingName: below necessary if I specify the "Auto Save Name" in IB?

- (void)awakeFromNib
{
// Position window based on auto-saved frame
[[self window] setFrameUsingName:FRAME_AUTOSAVE_NAME];

// Why is this line of code necessary, when the "Auto Save Name"
// value for this window is set in the nib?
[[self window] setFrameAutosaveName:FRAME_AUTOSAVE_NAME];
}

Jim
--
Jim Menard, email@hidden, http://www.io.com/~jimm/
"I cannot articulate enough to express my dislike to people who think that
understanding spoils your experience... How would they know?"
-- Marvin Minsky
_______________________________________________
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: Autosaving a window's frame
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Saving NSTableView data
  • Next by Date: Re: Recognizing standard about box
  • Previous by thread: Re: Authorization Example needed
  • Next by thread: Re: Autosaving a window's frame
  • Index(es):
    • Date
    • Thread