• 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: Restraining window movement + gridding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Restraining window movement + gridding


  • Subject: Re: Restraining window movement + gridding
  • From: Rolf <email@hidden>
  • Date: Thu, 16 Oct 2003 23:24:39 +0200

16.10.2003 21:48:51, skrev mmalcolm crawford <email@hidden>:

>On Oct 16, 2003, at 11:47 AM, Rolf Peder Klemetsen wrote:
>
>> I removed the [[NSNotificationCenter defaultCenter] addObserver.
>> However the -
>> windowWillMove is still not being called. -windowWillResize is not
>> being called either.
>>
>Are the method signatures exactly right -- including arguments?




Yes, I have copy-and-paste directly from the documentation - twice before - and now I
have tried it again !


>
>- (void)windowWillMove:(NSNotification *)aNotification
>- (NSSize)windowWillResize:(NSWindow *)sender
>toSize:(NSSize)proposedFrameSize
>
>It's usually best to copy-and-paste these from the documentation to
>make sure you don't misspell them.
>
>
>> Interestingly -windowWillUpdate IS being called. So delegates are bing
>> called but not the
>> two I need :-(
>>
>There is no windowWillUpdate delegate method...



Sorry. Typo. I ment windowDidUpdate ..

Since I can't get -windowWillMove to work I now use -windowDidMove instead. But it is
no perfect solution - the user can drag the window briefly outside of visible screen area
before it is forced back in again ..


/Rolf



>
>mmalc
>_______________________________________________
>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: Restraining window movement + gridding
      • From: mmalcolm crawford <email@hidden>
References: 
 >Re: Restraining window movement + gridding (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: General weirdness with [self window]
  • Next by Date: Font menu in an NSPopUpButton
  • Previous by thread: Re: Restraining window movement + gridding
  • Next by thread: Re: Restraining window movement + gridding
  • Index(es):
    • Date
    • Thread