• 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: <no subject>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <no subject>


  • Subject: Re: <no subject>
  • From: Jeff LaMarche <email@hidden>
  • Date: Thu, 12 Sep 2002 09:28:38 -0700 (PDT)

Out of curiosity, have you tried putting an NSLog statement in your windowDidResize: method to see if it's firing? It's possible that you're not receiving the notification because you're not registered as the window's delegate?

It's the only thing I can think of...


On Thursday, Sep 12, 2002, at 08:56AM, Tony S. Wu <email@hidden> wrote:

>In my application's document, I have these two methods:
>
>- (void)windowControllerDidLoadNib:(NSWindowController *) aController
>{
> [[NSNotificationCenter defaultCenter]
> addObserver: self
> selector: @selector(windowDidResize:)
> name: NSWindowDidResizeNotification
> object: window];
>
> [window setFrameUsingName: @"MyDocumentWindow"];
>
> // ...
>}
>
>- (void)windowDidResize: (NSNotification *)aNotification
>{
> [window saveFrameUsingName: @"MyDocumentWindow"];
>}
>
>I expected it to store my main window's frame, but it didn't do anything.
>I checked the preference file, the frame settings didn't get stored.
>And after a couple of more try, my curiosity got the best of me.
>I created a new application (doc-based too) with these two methods "only".
>Now it works...
>Could someone tell me what the problem might be?
>Thanks.
>
>Tony S. Wu
>email@hidden
>
>"Nope, this world ain't perfect. But at least I know it's not because of
>me."
>_______________________________________________
>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: <no subject>
      • From: "Tony S. Wu" <email@hidden>
  • Prev by Date: <no subject>
  • Next by Date: setFrameUsingName , setFrameAutosaveName
  • Previous by thread: Re: NSURL question with user name and pwd in the URL..
  • Next by thread: Re: <no subject>
  • Index(es):
    • Date
    • Thread