• 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
setFrameAutosaveName question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: setFrameAutosaveName question
      • From: Darkshadow <email@hidden>
    • Re: setFrameAutosaveName question
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: Wisdom of overriding isEqual:
  • Next by Date: Re: [SOLVED...but] Re: Storing NaN in NSMutableArray ?
  • Previous by thread: Re: obj-c functions versus class methods
  • Next by thread: Re: setFrameAutosaveName question
  • Index(es):
    • Date
    • Thread