• 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 positions in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving Window positions in Cocoa


  • Subject: Re: Saving Window positions in Cocoa
  • From: email@hidden
  • Date: Fri, 25 Jan 2002 10:58:30 +0100

I'm attempting to save the window position on a fixed size window with no
results.

in this case first you've to create a preference in the header file by calling:
- (void)savePreferenceSettings;
next in your @implementation you should call for example

NSWindow* winPos = [super initWithContentRect:contentRect styleMask:NSTitledWindowMask backing:NSBackingStoreBuffered defer:NO];

[winPos saveFrameUsingName:@"WindowPosition"];
return winPos;

that's it. though other may give you better solution
==
chandan


  • Prev by Date: Re: Saving Window positions in Cocoa
  • Next by Date: Re: Subclassing NSDocumentController
  • Previous by thread: Re: Saving Window positions in Cocoa
  • Next by thread: setStringValue vs. setTitle on NSButtonCell
  • Index(es):
    • Date
    • Thread