Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

neuropulse

macrumors member
Original poster
Mar 4, 2008
31
0
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.
 

neuropulse

macrumors member
Original poster
Mar 4, 2008
31
0
This is a forum where you can do just that :confused:

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.
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
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.
 

neuropulse

macrumors member
Original poster
Mar 4, 2008
31
0
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.

That's what I meant. Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.