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 PROTECTED] 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to