On Jun 12, 2013, at 20:35:40, Ken Thomases <[email protected]> wrote:

> I'm not sure I understand.  It's running an internal event loop?  If that's 
> the case, then you definitely get the NSWindowWillStartLiveResizeNotification 
> before seeing an NSLeftMouseDragged.  So, while you would have had to set up 
> for your window moving during the NSLeftMouseDown, you can undo your internal 
> state changes upon seeing the NSWindowWillStartLiveResizeNotification and 
> then subsequently ignore any NSLeftMouseDragged events you see.
> 
> Actually, if you call super before handling mouse events as potential window 
> dragging, then you should know if an NSLeftMouseDragged is a potential drag 
> based on whether or not NSWindowWillStartLiveResizeNotification was posted 
> during the call to super.

You are correct. I was previously misunderstanding how the resize code flow was 
arranged. Yes, the resize code is totally run inside NSWindow's sendEvent while 
handling the primary NSLeftMouseDown event, so I can get the 
NSWindowWillStartLiveResizeNotification to be notified that I can skip that 
particular NSLeftMouseDown after it returns from super. Thanks again!

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to