objective c - Use a not active application (background) -


is there way work minimized or not active applications? can open application, open , use another, , press button activate program?

for example, open application, open safari, press button (f1 or other), program copies nsstring , pastes text field using in safari. know how make program need (copy , paste message when button pressed) when it's active somehow has done in background.

yes. application should provide "service". accessible contextual menus, services submenu of application menu, , can have hot key assigned. designed (optionally) receive selected data app invokes , (optionally) return new data replace selection or inserted @ insertion point if there's no selection.

see description of services os x human interface guidelines.

see services implementation guide.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -