Catch Global Events

Discussion in 'Mac Programming' started by Togo, May 15, 2012.

  1. macrumors newbie

    Joined:
    May 15, 2012
    #1
    Hi,

    i have a idea for a program. I want to catch all actions from the users. If the user performed this action with the mouse, i wanna show him a notification with the shortcut of this actions. For example: The user open with the mouse a new tab in Safari the program recognize this and show him a message "Hey you can do this with: Apple + T".

    I played around with the

    Code:
    addGlobalMonitorForEventsMatchingMask:NSLeftMouseDownMask
    but i can't find a connection to the Event that has been performed.

    Is there anybody with a idea how i can do this with build in classes from Cocoa/Objective-c?

    Thank in advance for your help

    Greetings from Germany :D

    Tobi
     
  2. thread starter macrumors newbie

    Joined:
    May 15, 2012

Share This Page