Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Select text in background Cocoa apps System
A sorta-known functionality tidbit of Cocoa is the ability to manipulate nearly all (not the close, Dock, and zoon widgets) of the interface elements of window when it's in the background (see hints 1, 2, 3). Today, however, I discovered more sweet Cocoaness by accident ...

Click, hold, and drag to select any normally selectable text of a Cocoa app's window when it's in the background, and it won't change the overall window focus! You can then drag that text anywhere you want, and you still won't have to switch back to your originally on-top window.

[Editor's note: To get this to work, I had to hold down the Command key prior to the click and drag operation, otherwise the first click simply switched to the background application. After selecting the text, release the mouse and Command key, then hit Command again and click and drag the selection as desired.]
  • Currently 4.00 / 5
  You rated: 5 / 5 (3 votes cast)

Select text in background Cocoa apps | 3 comments | Create New Account
Click here to return to the 'Select text in background Cocoa apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
This works great with Stickies
Authored by: bkperry on Nov 03, '02 11:49:20AM

Nice hint. If you have a sticky note sticking out from behind a window, it's really handy to grab the text. And of course you can select-drag text to a sticky without activating the program. This completes the loop- cool.

----Brian Perry

[ Reply to This | # ]
old feat., new use
Authored by: englabenny on Nov 04, '02 09:43:05AM

as i recall, you've been able to move windows (while pressing command key) without changing focus i macos before, sometime since 8.0 or maybe earlier... but this seems useful too.

[ Reply to This | # ]
Not just for text...
Authored by: Anonymous on Nov 05, '02 02:48:42PM

... it also works in iPhoto and is damned handy for dragging a photo out of the iPhoto library [which typically takes up my entire screen] into a Mail message.

Very cool!

[ Reply to This | # ]