• 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: "Tony S. Wu" <email@hidden>
  • Date: Thu, 12 Sep 2002 11:29:14 -0700

Of course I tried.
And I did see the log being printed in the console, which means my
windowDidResize: did get called.

Tony S. Wu
email@hidden

"Nope, this world ain't perfect. But at least I know it's not because of
me."


Jeff LaMarche at email@hidden wrote:

> 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.
_______________________________________________
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.

References: 
 >Re: <no subject> (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Re: [newbie] NSString code so it won't leak
  • Next by Date: Re: [Q] Activating an NSButtonCell
  • Previous by thread: Re: <no subject>
  • Next by thread: alpha window ?
  • Index(es):
    • Date
    • Thread