• 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
-mouseDragged: sent to view when dragging window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-mouseDragged: sent to view when dragging window


  • Subject: -mouseDragged: sent to view when dragging window
  • From: Markus Spoettl <email@hidden>
  • Date: Tue, 24 Jul 2012 22:36:00 +0200

Hello,

when I drag my window around by clicking into the toolbar area and drag from there, and I do very rapid up-down movements across the entire screen, sometimes AppKit - mistakenly - sends a -mouseDragged: to my view situated below the toolbar. The call stack looks like this:

#1	0x0000000103617e99 in -[SomeView mouseDragged:] at /SomeView.m:209
#2	0x00007fff8c9b070d in -[NSObject performSelector:withObject:] ()
#3	0x00007fff97d7cf6a in forwardMethod ()
#4	0x00007fff8c9b070d in -[NSObject performSelector:withObject:] ()
#5	0x00007fff97d7cf6a in forwardMethod ()
#6	0x00007fff8c9b070d in -[NSObject performSelector:withObject:] ()
#7	0x00007fff97d7cf6a in forwardMethod ()
#8	0x00007fff8c9b070d in -[NSObject performSelector:withObject:] ()
#9	0x00007fff97d7cf6a in forwardMethod ()
#10	0x00007fff97d777ac in -[NSWindow sendEvent:] ()
#11	0x00007fff97d10a55 in -[NSApplication sendEvent:] ()
#12	0x00007fff97ca70c6 in -[NSApplication run] ()
#13	0x00007fff97f23244 in NSApplicationMain ()
#14	0x0000000103401412 in main at /Users/markus/Projects/rubiTrack/src/main.m:20
#15	0x00000001033f8324 in start ()

When I drag the window title area (not the toolbar ) using the same kind of movement, this doesn't happen.

Can someone confirm this? My view reacts to -mouseDragged: but doesn't check if there's been a -mouseDown: first because that's implicit. Did that change?

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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:
    • Re: -mouseDragged: sent to view when dragging window
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Forcing Core Data to save attribute changed behind its back?
  • Next by Date: Re: Forcing Core Data to save attribute changed behind its back?
  • Previous by thread: Re: Why is NSDocument reverting so rudimentary?
  • Next by thread: Re: -mouseDragged: sent to view when dragging window
  • Index(es):
    • Date
    • Thread