• 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: A finished moving notification for a window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A finished moving notification for a window?


  • Subject: Re: A finished moving notification for a window?
  • From: Eric Gorr <email@hidden>
  • Date: Fri, 7 Nov 2008 15:29:17 -0500


On Nov 7, 2008, at 3:15 PM, Eric Gorr wrote:

On Nov 7, 2008, at 12:58 PM, James Walker wrote:

Eric Gorr wrote:
On Nov 6, 2008, at 5:38 PM, email@hidden wrote:
At 5:25 PM -0500 11/6/08, Eric Gorr wrote:
Apparently, NSPanel's don't get NSWindowWillMoveNotification's - at least I am not getting them in 10.5.

Perhaps a bug?

don't know. file a radar bug and see what response you get.
It looks like one of those bugs one sees when mixing Carbon & Cocoa, which is what I am dealing with.
With a Cocoa only app, the NSPanel does get the NSWindowWillMoveNotification's.


You could try watching for kEventClassWindow/ kEventWindowDragStarted and kEventClassWindow/ kEventWindowDragCompleted Carbon events on the WindowRef associated with the NSPanel.


Well, that would probably work, but the goal of my project is to remove the Carbon based code, not add to it.


I was able to solve the problem by subclass NSWindow and overriding sendEvent. I watch for NSLeftMouseDown & NSLeftMouseUp and see if the window has moved.

If anyone is interested, I have filed a bug report:

rdar://6353612

and a simple test application demonstrating the problem can be found at:

http://ericgorr.net/CocoaWithCarbon.zip

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • A trapped keyDown event
      • From: Eric Gorr <email@hidden>
References: 
 >Re: Cocoa-dev Digest, Vol 5, Issue 1904 (From: "email@hidden" <email@hidden>)
 >Re: A finished moving notification for a window? (From: "email@hidden" <email@hidden>)
 >Re: A finished moving notification for a window? (From: Eric Gorr <email@hidden>)
 >Re: A finished moving notification for a window? (From: "email@hidden" <email@hidden>)
 >Re: A finished moving notification for a window? (From: Eric Gorr <email@hidden>)
 >Re: A finished moving notification for a window? (From: James Walker <email@hidden>)
 >Re: A finished moving notification for a window? (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: A finished moving notification for a window?
  • Next by Date: A trapped keyDown event
  • Previous by thread: Re: A finished moving notification for a window?
  • Next by thread: A trapped keyDown event
  • Index(es):
    • Date
    • Thread