• 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: 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.

  • Follow-Ups:
    • Re: Restraining window movement + gridding
      • From: Henry McGilton <email@hidden>
References: 
 >Re: Restraining window movement + gridding (From: Rolf <email@hidden>)

  • Prev by Date: Re: is unzip installed by default?
  • Next by Date: Re: How to track down a double release?
  • Previous by thread: Re: Restraining window movement + gridding
  • Next by thread: Re: Restraining window movement + gridding
  • Index(es):
    • Date
    • Thread