Re: A finished moving notification for a window?
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:15:21 -0500
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.
_______________________________________________
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