Problem with Document windows and automatic defaults
Problem with Document windows and automatic defaults
- Subject: Problem with Document windows and automatic defaults
- From: Michael Heinz <email@hidden>
- Date: Sun, 5 Dec 2004 09:51:26 -0500
So,
In the initWithWindowNibName method of my document controller, I set
the autosave name:
- (id) initWithWindowNibName:(NSString *)nibName {
if (self = [super initWithWindowNibName:nibName]) {
[self setWindowFrameAutosaveName:@"DocumentWindow"];
}
return self;
}
This means that the next time my application runs, the first document
opened will have the same window size and position as the last document
from the last time the program was run. Great.
Except that every other document window my application runs gets the
default window size and position. Very annoying since the application
tends to be used to open many documents, one at a time.
Any suggestions as to why this might be or how to manually get and use
the window frame information from the user defaults?
Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden