Autosaving a window's frame
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.