How do I...get the state of the pointer?

Discussion in 'Mac Programming' started by neuropulse, Mar 4, 2008.

  1. macrumors newbie

    Joined:
    Mar 4, 2008
    #1
    Greetings,

    Just joined. My first post. Learning programming.

    How do I get the state of the cursor?

    (This is for use in a macro program that I want a cursor change to trigger events.)

    Thanks

    p.s. It would be great of there were a forum/database/wiki where people can ask and answer "how to" question and accumulate a large library of answers.
     
  2. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    Well a Mac Guide can be created for this, its a good idea.
     
  3. macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #3
    That's a very general question. Which database, API, and language are you using?
     
  4. macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #4
    This is a forum where you can do just that :confused:
     
  5. thread starter macrumors newbie

    Joined:
    Mar 4, 2008
    #5
    Apple's software. Xcode, Objective C.
     
  6. thread starter macrumors newbie

    Joined:
    Mar 4, 2008
    #6
    I'm thinking of something organized into a database searchable and browsable by various criteria. Every page would be an answer to a "How do I..." question and have a snippet of code.
     
  7. macrumors 601

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #7
    Code:
    NSCursor *currentCursor = [NSCursor currentCursor];
    Well that's how you get the current cursor itself, I'm not entirely sure what you mean by "the state of", other than that.
     
  8. thread starter macrumors newbie

    Joined:
    Mar 4, 2008
    #8
    That's what I meant. Thanks.
     

Share This Page