• 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
Kernal/Quartz extension to "snap" mouse to nearest control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Kernal/Quartz extension to "snap" mouse to nearest control


  • Subject: Kernal/Quartz extension to "snap" mouse to nearest control
  • From: Jim Witte <email@hidden>
  • Date: Wed, 5 Feb 2003 00:41:23 -0500

Hi,

I should start by saying that this is something I want to make for a personal programming challenge and in-house toy, not meant for general distribution without user-testing first, so don't go screaming that this breaks all the HIG rules in the book - I know it does.. If this is even possible, this overlaps between a kernal-extension and some kind of interface to the quartz window manager.

I'm finding using a trackpad rather than a mouse, it's harder to focus down on small points, like window controls, window corners, buttons, etc. So I thought of writing a kernal extension that would "snap" the cursor to certain control points when the mouse got close to them, with some kind of override mechanism so I wouldn't drive myself absolutely to distraction (hadven't quite figured that one out yet, maybe time based [within 1s of snapping, no more snapping behavior would occurr] or a key [space bar?])

Two concerns with this are (1) to differentiate between the trackpad and an external USB HID device (I assume I can do that at the driver layer somehow), and getting the proper "snap points" to the kernal layer from the Quartz layer (that's harder I figure). Is it even *possible* to get this kind of stuff out of Quartz by setting up a background app that would monitor whenever a window moved, get the updated window rectangle in global coordinates (or those of all windows), and then pass that to the kernal extension?

Or perchance, could this done somehow without a kernal extension?

Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Kernal/Quartz extension to "snap" mouse to nearest control
      • From: The Amazing Llama <email@hidden>
  • Prev by Date: Re: Sorting an NSOutlineView
  • Next by Date: Re: Disadvantages of Bridging Java in Objective-C Cocoa Apps
  • Previous by thread: NSString to xml?
  • Next by thread: Re: Kernal/Quartz extension to "snap" mouse to nearest control
  • Index(es):
    • Date
    • Thread