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

Create non-contiguous selections in Cocoa apps System
In Cocoa apps such as TextEdit and Mail, if you select a full line of text by triple-clicking, you can then deselect words by command-double-clicking on them. If you copy the resulting selection, the deselected words are replaced by line breaks.

I realised this when I tried to open a URL in TextEdit by simply double clicking it. When that didn't work, I tried double clicking it with different modifiers. I still think it's stupid that Cocoa doesn't offer the functionality that was available via Internet Config in System 7.
    •    
  • Currently 2.86 / 5
  You rated: 4 / 5 (7 votes cast)
 
[9,928 views]  

Create non-contiguous selections in Cocoa apps | 19 comments | Create New Account
Click here to return to the 'Create non-contiguous selections in Cocoa apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Typo
Authored by: PopMcGee on Jan 06, '06 07:34:37AM

Correct text for the hint:

In Cocoa apps such as TextEdit and Mail, if you select a full line of text by triple-clicking, you can then deselect words by command-DOUBLE-clicking on them.



[ Reply to This | # ]
Create non-contiguous selections in Cocoa apps
Authored by: fbitterlich on Jan 06, '06 07:45:51AM

Doesn't work for me; if I triple-click on a text line in mail, I cannot deselect words - neither by command-double- or single-clicking, nor by command-dragging. Anything I'm missing here?



[ Reply to This | # ]
Create non-contiguous selections in Cocoa apps
Authored by: hamarkus on Jan 06, '06 07:55:31AM

Command-DOUBLE-clicking works for me in TextEdit but not in Camino.



[ Reply to This | # ]
Create non-contiguous selections in Cocoa apps
Authored by: bdog on Jan 06, '06 10:02:22AM

Camino's content area isn't Cocoa, but rather Carbon, and that's why it doesn't work.



[ Reply to This | # ]
10.4 only!
Authored by: wootest on Jan 06, '06 07:55:00AM

Discontinious selections were introduced in 10.4 ("Tiger"). Hold alt and drag for a 'rectangular' selection (only truly rectangular with monospace fonts); Hold command and drag for discontinious selections.



[ Reply to This | # ]
10.4 only!
Authored by: osxpounder on Jan 06, '06 11:17:27AM

None of the above hints works for me in Mail on a fresh install [updated to latest] of Tiger. I've only been using this box for email and web browsing since the reinstall and haven't had time to reinstall APE or other extensions that I could imagine might conflict with these features.

In Safari, I notice I can only do that discontiguous selection thing in a text field like the one I'm using to type this post.

In TextEdit, it works like a champ. Since I'm installing Adobe CS2 now, I'll be interested to see if the same selection techniques will work in InDesign. Since you mentioned that Option-dragging selects a rectangular region: now I see why Option-dragging to copy text doesn't work anymore. Thanks!

---
--
osxpounder



[ Reply to This | # ]
10.4 only!
Authored by: osxpounder on Jan 06, '06 11:23:34AM

Correction: these tips only seem to work in a Mail message that I'm viewing as plain text. I usually set my Mail clients to do this, out of old habit, but I had not yet set up the new Mail to do it. Some messages arrive plain text, some don't, and the first messages I tried this on were rich text, not plain text. Only works with plain text.

---
--
osxpounder



[ Reply to This | # ]
Does not work with Copy / Paste / Drag / Drop
Authored by: alexmathew on Jan 07, '06 10:10:23AM

10.4.3
Mail
I can select non-contiguous - but cannot paste or drag and drop - only the first word is pasted/dropped.
I set the font to monospaced, viewing in text mode only....
I wish it would work - very useful hint.
AM



[ Reply to This | # ]
Not with ICeCoffEE
Authored by: earthsaver on Jan 06, '06 07:57:41AM

Was this really a feature of System 7 as an OS?, or only with the ICeTEe extension plugin for Internet Config? Anyway, the command-click/select feature doesn't work with ICeTEe's OS X replacement, an application enhancer called ICeCoffEE, installed.

---
- Ben Rosenthal
Q16 1.25 - Tiger



[ Reply to This | # ]
Not with ICeCoffEE
Authored by: bdjones on Jan 06, '06 09:19:57AM

I believe you are correct - never used 7 much but with 8 and 9 you had to have ICeTEe to get that functionality



[ Reply to This | # ]
Not with ICeCoffEE
Authored by: sabi on Jan 06, '06 10:38:04PM

Yeah, it was never a feature of the OS until OS X. In OS X, there are a few Apple-supplied apps that support command-clicking - Terminal will launch a URL with a command-double-click, and anything that uses MLTE (FileMaker Pro is one example) will launch a URL with a command-click. But neither of them use particularly intelligent parsers to figure out the URL boundaries, so ICeCoffEE does a better job.

Not that I'm biased or anything. :-)

--Nicholas (ICeCoffEE author)



[ Reply to This | # ]
Not with ICeCoffEE
Authored by: david-bo on Jan 08, '06 03:37:36AM

Yes it was. In System 7 you had to have 3rd party software (i.e., Inernet Config and Icetea) but Apple bought it for Mac OS 8 or 9 and then command-clicking become integrated in the system. Too bad they didn't transfer this functionality to Mac OS X.

---
http://www.google.com/search?as_q=%22Authored+by%3A+david-bo%22&num=10&hl=en&ie=ISO-8859-1&btnG=



[ Reply to This | # ]
Create non-contiguous selections in Cocoa apps
Authored by: siMac on Jan 06, '06 08:02:19AM

Works in TextEdit but not in Mail for me.



[ Reply to This | # ]
Create non-contiguous selections in Cocoa apps
Authored by: billbarstad on Jan 06, '06 08:12:20AM

If you want to open a URL from a cocoa app, install ICeCoffEE and command-click on it.



[ Reply to This | # ]
Create non-contiguous selections in Cocoa apps
Authored by: ksuther on Jan 06, '06 09:21:21AM

You can also open a URL by right/control-clicking on it and selecting Open URL. This only works if the URL has the leader protocol handler though (http://)



[ Reply to This | # ]
Open URL from selected url in text
Authored by: simsamsep on Jan 06, '06 10:32:47AM

Two ways to open a selected url in text:
- In cocoa applications and in services aware carbon applications:
Select the url and choose "Open URL" from the Services menu.
- In cocoa applications only:
Select the url and choose "Open URL" from the contextual menu (Control-click or right-click).



[ Reply to This | # ]
Create non-contiguous selections in Cocoa apps
Authored by: jacobolus on Jan 06, '06 01:19:11PM

Doesn't mail use webkit to show its rich text emails? Either way, if this doesn't work for non-plain-text emails, it's a bug.



[ Reply to This | # ]
Can select but pasting results in only first selection..
Authored by: alexmathew on Jan 07, '06 10:12:54AM

10.4.3, Mail
The hint works for selection but pasting into a new Mail message or Textedit doc results only in the first part of the selection being pasted.



[ Reply to This | # ]
Create non-contiguous selections in Cocoa apps
Authored by: Arturia on Jan 09, '06 04:02:12AM
Not a new News ;-)

Read mekkablue's comment about a feature in Word... and in all Cocoa apps
http://www.macosxhints.com/article.php?story=20051101065247594

[ Reply to This | # ]