setFrameAutosaveName question
setFrameAutosaveName question
- Subject: setFrameAutosaveName question
- From: Darrin Cardani <email@hidden>
- Date: Wed, 10 Mar 2004 16:38:06 -0600
I am attempting to save the size and position of my document windows.
I have multiple windows per document, each with their own subclass of
NSWindowController controlling them. I read in the mamasam archives
that this may be part of my problem, but it wasn't clear if that's
the case.
The first thing I tried to do was to set the "Auto Save Name" field
for each window in Interface Builder. This had no effect at all.
Next, I made the document the delegate of each window, and added a
-windowDidResize: method that called -saveFrameUsingName: for each
window it was passed. This works for 1 run of the application. If you
run the app and change the window sizes, it saves them. If you quit
and re-run, the windows have the saved sizes and positions. If you
don't touch the windows and quit and re-run, all the windows return
to their original sizes and positions.
So what do I have to do to not erase the window positions if the user
doesn't change them?
Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<
http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
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.