• 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
Re: InputManagers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InputManagers


  • Subject: Re: InputManagers
  • From: Jonathan Paisley <email@hidden>
  • Date: Mon, 14 Jun 2004 14:16:38 +0100

On 11 Jun 2004, at 14:15, Steve Checkoway wrote:

Basically, I would like to add functionality to (Cocoa) windows in all
applications where command (or some other modifier, perhaps option)
dragging causes the entire window to be dragged around similar to many
X11 window managers. After looking at CocoaGestures with otool for a
bit and noticing that it is installed in ~/Library/InputManagers, I
decided that I would make my first attempt at this using the input
managers.

I don't know off hand what's causing the problems you're seeing, but I have implemented a tool for a similar purpose.

What I did was patch [NSWindow sendEvent:] in a similar way to the workings of MenuCracker [1] (change the method_imp pointer and call _objc_flush_caches on the class). A better way might be to use mach_override [2].

[1] http://sourceforge.net/projects/menucracker
[2] http://rentzsch.com/mach_override/
_______________________________________________
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.


References: 
 >InputManagers (From: Steve Checkoway <email@hidden>)

  • Prev by Date: #define works, const short does not for Ctype array in class
  • Next by Date: NSTextAttachment problems
  • Previous by thread: Re: InputManagers
  • Next by thread: POST request without NSURLConnection
  • Index(es):
    • Date
    • Thread