Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to develop an app for Mac OS X that keeps reading everything the user types in?

I'm here to ask if any of you know how to develop an app for Mac OS X that keeps reading everything the user types in. An example of app that implements this behavior is Text Expander.

Text Expander reads everything the user types in, searching for abbreviations previously added on it. When one of this abbreviations is found, Text Expander replace the abbreviation form for the entire content related to that abbreviation.

So, I would like to know what resource of Objective-C or Cocoa let you do this kind of stuff.

P.S.: Just to mention, I'm not thinking about developing something like a key logger. I'm just curious and thinking about at developing a snippet platform.

like image 761
Elomar Nascimento dos Santos Avatar asked May 10 '10 20:05

Elomar Nascimento dos Santos


People also ask

Can I develop an app for Mac?

Unlike some other platforms, developing for macOS requires the installation of just one tool: Xcode. Xcode is an IDE (Integrated Development Environment) that includes everything you need to develop macOS, iOS, watchOS and tvOS apps.

How do I become a Mac developer?

The qualifications needed to become a Mac developer include a bachelor's or master's degree in computer science and previous experience building applications. You should put together a portfolio showing your best work.


1 Answers

This can be done with CGEventTap, but it requires that your process is running as root or “access for assistive devices” is enabled.

like image 64
Jens Ayton Avatar answered Nov 15 '22 05:11

Jens Ayton