Re: Restraining window movement + gridding
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.