Re: Restraining window movement + gridding
Re: Restraining window movement + gridding
- Subject: Re: Restraining window movement + gridding
- From: mmalcolm crawford <email@hidden>
- Date: Thu, 16 Oct 2003 15:08:54 -0700
On Oct 16, 2003, at 2:24 PM, Rolf wrote:
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 !
Interestingly -windowWillUpdate IS being called. So delegates are
bing
called but not the two I need :-(
Is the delegate set correctly? If it's set in IB, are you resetting it
programatically elsewhere?
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 ..
windowWillMove et al. are "notification" methods, not delegate methods.
Delegate methods allow you to alter the behaviour of the object of
which you are a delegate; notifications simply inform you that
something is happening. There isn't a delegate method to do exactly
what -- now that I read your original post, and what should have been
obvious from the subject, sorry -- you want to do...
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.