• 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
Problem with Document windows and automatic defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Need help with initializing Menu check boxes
  • Next by Date: Re: Best way to debug (was retain/release/pointers question)
  • Previous by thread: Re: Key value observing?
  • Next by thread: Getting file icon in authorised executable
  • Index(es):
    • Date
    • Thread