Re: Saving Window positions in Cocoa
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