• 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
Re: Saving window location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving window location


  • Subject: Re: Saving window location
  • From: Andreas Monitzer <email@hidden>
  • Date: Fri, 7 Sep 2001 23:38:40 +0200

On Friday, September 7, 2001, at 10:37 , Vince DeMarco wrote:

On Friday, September 7, 2001, at 01:27 pm, Drew Cunningham wrote:

Can anyone give me an example of Objective-C code to save the main window'
s location between application runs? I've been trying to use NSArchiver/
NSUnarchiver to no avail.
It would seem to be popular code to me, but I can't find any examples specifically for window location in my searches.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


Either use IB (the name: field in the Window inspector) or the method

setFrameAutoSaveName: see

http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/
ObjC_classic/Classes/NSWindow.html

Did you finally fix that ancient bug with resized controls? Otherwise I'd only recommend it for non-resizable windows.

andy
--
Discussion forthcoming.


  • Follow-Ups:
    • Re: Saving window location
      • From: Vince DeMarco <email@hidden>
References: 
 >Re: Saving window location (From: Vince DeMarco <email@hidden>)

  • Prev by Date: Re: disable options in finder
  • Next by Date: Re: Mac OS X 10.1 File Name Extension Guidelines
  • Previous by thread: Re: Saving window location
  • Next by thread: Re: Saving window location
  • Index(es):
    • Date
    • Thread