marioguzman,
@marioguzman@mastodon.social avatar

Probably one of my fave "fine tuning" APIs in #AppKit that I just love: acceptsFirstMouse(for:)

This is great for unintended actions that might happen if your users clicks somewhere in a window to bring it to the forefront but might have clicked a control.

Example: Mail overrides this for the Delete button. If Mail is in the background, if you click over the Delete button to bring it forward, it brings Mail to the front but the button will ignore that initial click.

https://developer.apple.com/documentation/appkit/nsview/1483410-acceptsfirstmouse

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • JUstTest
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • provamag3
  • megavids
  • tester
  • lostlight
  • All magazines