Re: NSWindow not restoring location
Re: NSWindow not restoring location
- Subject: Re: NSWindow not restoring location
- From: Greg Hulands <email@hidden>
- Date: Thu, 13 Jun 2002 18:08:05 +1000
It made no difference. I also have set the auto save name in the nib as
well.
Any Clues?
Greg
On 13/6/02 6:04 PM, "j o a r" <email@hidden> wrote:
>
>
How about calling:
>
>
- (BOOL)setFrameUsingName:(NSString *)name
>
>
on the window in:
>
>
- (void)windowDidLoad
>
>
of your window controller?
>
>
j o a r
>
>
On Thursday, June 13, 2002, at 09:49 AM, Greg Hulands wrote:
>
>
> Hi,
>
> I have an inspector that I want to save the location of so that when the
>
> application relaunches it is in the same position. My controller class
>
> for
>
> the inspector is a subclass of NSWindowController.
>
>
>
> - (id)init {
>
> self = [self initWithWindowNibName:@"Inspector"];
>
> if (self) {
>
> [self setWindowFrameAutosaveName:@"Inspector"];
>
> needsUpdate = YES;
>
> }
>
> return self;
>
> }
>
>
>
> The position is saved in the plist file in the preferences folder but
>
> when
>
> it comes time to restore the position of the window, it just does not
>
> do it.
>
> Is there something I am not setting or calling to get this to work
>
> properly?
>
>
>
> Any help is appreciated.
>
>
>
> Greg
>
> _______________________________________________
>
> 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.
_______________________________________________
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.