image
image

Go Back   macosx.com > Content & Information > Apple News, Rumors & Discussion

View Poll Results: Should Apple Fix Cocoa's Text Selection Behavior
No: Cocoa apps should behave like windows apps 1 11.11%
Yes: Apple is insane not to fix this 8 88.89%
Voters: 9. You may not vote on this poll

Reply
 
Thread Tools
  #1  
Old April 4th, 2001, 05:42 AM
strobe's Avatar
Puny Member
 
Join Date: Dec 2000
Posts: 795
Thanks: 0
Thanked 0 Times in 0 Posts
strobe is on a distinguished road
Unhappy

Cocoa's text selection behavior mimics Windows. It's driving me NUTS! I have to select right-to-left in Cocoa apps and left-to-right in Carbon/Classic/Swing apps.

My brain is turning into a pretzel!
__________________
---
>80 column hard wrapped e-mail is not a sign of intelligent
>life
Reply With Quote
  #2  
Old April 5th, 2001, 07:16 AM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
Apparently I haven't run into this: what's the problem?

And why do people think that a text selection rule should dictate the worth of an entire operating system? Am I misunderstanding?

-Rob
Reply With Quote
  #3  
Old April 5th, 2001, 07:32 AM
strobe's Avatar
Puny Member
 
Join Date: Dec 2000
Posts: 795
Thanks: 0
Thanked 0 Times in 0 Posts
strobe is on a distinguished road
Unhappy

The problem isn't the rule, the problem is there are several rules and thus several interfaces. MacOS has a unified interface, OS X does not.

When selecting text we (mac users) tend to select left-down not right-up. I'm not sure how OPENSTEP users typically select text, but the only way to get the same behavior with Cocoa applications is to select right-up. The specific behavior difference deals with the carriage returns at the end of lines. When selecting from right to left without moving down to the next line, Classic, Carbon, and Swing will not select the CR at the end of that line. There are various reasons why this behavior is ideal. I'll list each separately with the consequence of the specific situation:

1) Nearly every time I select text I do not want the CR. I'm often pasting into text fields or a command line. Even when editing a document like this one I don't want to select the CR. In the rare case that I do I add it after pasting.

For this reason selecting without the CR ought to be easier even if deleting the CR is equally easy (which it isn't).

2) Adding the CR is always possible, removing unwanted CRs isn't (a CR will sometimes 'enter' text).

For this reason selecting without the CR ought to be the default.

3) CRs are paragraph delimiters. The general HI guideline is when selecting a 'word' then removing it and double word delimiters are to be avoided, the first one is deleted not the last one (whether in Eudora, BBEdit, or TextEdit.app). Selecting the first paragraph delimiter would be consistent, Cocoa clearly isn't consistent with itself by selecting the last.

For this reason selecting the first CR should be easy: by dragging down from the previous line on the right margin will select the first CR with the line thus making document editing easy. This drag action in Cocoa selects both CRs and is a pain.

4) Every other human interface uses a right-down drag motion like hierarchical menus (not to mention typing words is right-down), the only exception is Cocoa's text selection. Again, where is the consistency?

For this reason the desired selection ought to be possible using a right-down drag.

5) Just to avoid a schizophrenic interface where one uses a right-down drag motion in all apps except Cocoa where the motion is left-up.

For this reason the selection behavior ought to be uniform for all applications.

For the above reasons and more, I'm inclined to believe the mac selection behavior is far better than Cocoa's. Apple has already altered Cocoa's text handling behavior to comply with previously implicit (made explicit in Apple's HI revision) mac conventions. For example the down arrow moves the cursor to the end of a line in a text field (being logically consistent with dragging down) and pgup/pgdown/home/end keys scroll instead of move the cursor. Clearly Apple isn't blind to those differences however have failed to change the selection behavior. Either they aren't aware of this, or there is a NeXT clique in Apple resistant to change.
__________________
---
>80 column hard wrapped e-mail is not a sign of intelligent
>life
Reply With Quote
  #4  
Old April 5th, 2001, 10:02 AM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
Okay. Now I understand the complaint. Inconsistency is annoying.

Is TextEdit Cocoa? When I select a paragraph in TextEdit by starting at character 1 and dragging to the last period, I can <em>either</em> select the carriage return by extending the mouse past the last character <em>or not select the carriage return</em> by stopping my drag motion at the last character. If the carriage return is selected, I'm given immediate feedback because the whole line all the way out to the scroll bar is hilited.

-Rob
Reply With Quote
  #5  
Old April 5th, 2001, 04:13 PM
VGZ's Avatar
VGZ VGZ is offline
Registered User
 
Join Date: Sep 2000
Posts: 589
Thanks: 0
Thanked 0 Times in 0 Posts
VGZ is on a distinguished road
Yes TextEdit is a cocoa application. I have to say that rharder is right. I have had no problem selecting text and not selecting the carriage return in Omniweb, Mail, TextEdit, etc.
__________________
Matt
___________________________________
G4 450 MP 256 MB RAM
80 GB OS X
80 GB storage/Backup
Apple 17" ADC Studio Display
Currently running Build 6D52/10.2.1

Post your configuration in your signature. It makes things much easier.
Reply With Quote
  #6  
Old April 5th, 2001, 05:08 PM
endian's Avatar
Dis Member
 
Join Date: Sep 2000
Location: inside my skin
Posts: 960
Thanks: 0
Thanked 0 Times in 0 Posts
endian is on a distinguished road
obviously Apple should fix it to be consistent, but I can't say it bothers me too much; I usually select right-up anyway
__________________
g4 400 AGP - 512 RAM
10GB internal (dumping ground) + 60GB (30 GB OSX partition/30 GB OSX Server partition) - 3GB external SCSI (OS9/and I think the Public Beta is still on there somewhere) - DVD-RAM - ZIP

Reply With Quote
  #7  
Old April 5th, 2001, 09:30 PM
strobe's Avatar
Puny Member
 
Join Date: Dec 2000
Posts: 795
Thanks: 0
Thanked 0 Times in 0 Posts
strobe is on a distinguished road
Unhappy

It's devilishly difficult to AVOID the CR when selecting left to right, especially if the last character is small.

Try using small fonts and with the last character being an i or l or period. It's a pain in the ass
__________________
---
>80 column hard wrapped e-mail is not a sign of intelligent
>life
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apple- Yesturday, Today, and Tomorrow GroundZeroX Opinions, & Open Letters 19 May 9th, 2005 07:56 PM
InfoWorld Special Report: Apple Unpeeled Michael Watson Apple News, Rumors & Discussion 4 November 24th, 2002 09:22 AM
Future of Apple With x86 pezagent Apple News, Rumors & Discussion 28 August 26th, 2002 12:41 PM
Apple observations and opinions TellarHK Apple News, Rumors & Discussion 4 May 31st, 2002 12:36 AM
Apple: Forget XP, try the Mac tagliatelle Bob's Place 1 November 25th, 2001 07:12 AM


All times are GMT -5. The time now is 03:18 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.