• 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: NSWindow not restoring location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSWindow not restoring location
      • From: jerome LAURENS <email@hidden>
References: 
 >Re: NSWindow not restoring location (From: j o a r <email@hidden>)

  • Prev by Date: Re: NSWindow not restoring location
  • Next by Date: Re: [Q] NSSavePanel and permissions
  • Previous by thread: Re: NSWindow not restoring location
  • Next by thread: Re: NSWindow not restoring location
  • Index(es):
    • Date
    • Thread