Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
548 views
in Technique[技术] by (71.8m points)

cocoa - Any sample code on getting data from sensors on Mac?

I am a newbie to Objective-C and this site, so can you point me in the right direction? I need sample code on ambient light sensor and sudden motion sensor on Mac. I really need this code and I didn't find anything on google. Can anyone help please?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Amit Singh's Mac OS X Internals site has info about the sudden motion sensor and the ambient light sensor.

Here's a library for getting the motion sensor data.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...