Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 14, 2012, 01:51 AM   #1
Marimuthu
macrumors member
 
Join Date: Oct 2010
Best way of display lengthy strings.

Dear All,

I am developing an application an Cocoa app using XCode on Lion. the app contains a main UI containing an scroll view to display strings of varying length in each of the cells in the view (max 35 characters)..

As the cells are of fixed length ( of fixed width and height), if an string to be displayed in the cell is greater than the cell size, I trim the string and append it with "...".

Could some of the experts in OS X UI development shed some light in other ways of displaying lengthier string which is generally followed by major MAC developers.

I could think of a few namely thought I am not sure that this is the right way to do it.
1. Continue to show by trimming and appending with string with "...", however if the user were to hover over the cell, show a tooltip with the entire string.

2. Reduce the font size such that the entire text is displayable in the cell.

Could somebody give me additional inputs on the same.

Thanks in advance.
Marimuthu is offline   0 Reply With Quote
Old Mar 14, 2012, 02:24 AM   #2
GorillaPaws
macrumors 6502a
 
GorillaPaws's Avatar
 
Join Date: Oct 2003
Location: Richmond, VA
If you're ok with bigger cells, you could always expand the height of the row when a mouse hovers over the cell with a nice simple animation, and then shrink it back when the mouse is outside the frame. If you want to go this route, take a look at the docs and sample code that deals with view-based tables. Alternatively, you could explode out the cell to a larger size, instead of the whole row. I suspect this would be too annoying though.
__________________
How to ask good programming questions: Getting Answers
GorillaPaws is offline   0 Reply With Quote
Old Mar 14, 2012, 02:39 AM   #3
Marimuthu
Thread Starter
macrumors member
 
Join Date: Oct 2010
Hi,
Thanks for the reply.

But, as stated earlier, to maintain consistency, cells are of predetermined dimensions hence Increasing the dimensions is not an option.
Marimuthu is offline   0 Reply With Quote
Old Mar 14, 2012, 03:08 PM   #4
GorillaPaws
macrumors 6502a
 
GorillaPaws's Avatar
 
Join Date: Oct 2003
Location: Richmond, VA
Quote:
Originally Posted by Marimuthu View Post
...But, as stated earlier, to maintain consistency, cells are of predetermined dimensions hence Increasing the dimensions is not an option.
UX design is all about making decisions based on constraints. It may actually be more useable for the user to hover over a truncated cell and have it's row animate open to reveal the text, and then have the row return to the consistent size when the mouse exits the frame. I think this would be a better experience than them trying to squint at a tooltip, furthermore, the user is not going to be able to select and copy text from the tooltip like they could with using the approach I proposed. I think it would be worth mocking up.

Build and run Apple's TableViewPlayground sample code. Take a look at the Complex Cell TableView window, and check/uncheck the "Use Small Row Height" box to see kind of what I'm talking about. I think the appropriate animation would only apply to 1 row and the animation would be much faster, possibly with the ease in/ease out parameter set so it has a bit of a popping or snapping effect. I think users might find this classy, and an elegant way to solve a tricky problem.

Obviously you have your own constraints you have to deal with, but I think it might be worth considering. Consistency for it's own sake is often detrimental to usability.
__________________
How to ask good programming questions: Getting Answers
GorillaPaws is offline   0 Reply With Quote
Old Mar 15, 2012, 01:08 AM   #5
seepel
macrumors 6502
 
Join Date: Dec 2009
Out of context I would suggest just sticking with the truncation scheme, it may not be worth the effort to expand the feature. This of course is predicated on the assumption that the full text is available elsewhere. Add the full feature when the entire app is done and ready to go and you've decided that it is worth it. If the full text is not available elsewhere, I would support the animation method suggested by Marinuthu.
__________________
Free iOS App that turns your music library into an info graphic.
Phonographic
seepel is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Localizable.strings jwingfie OS X Mavericks (10.9) 0 May 8, 2014 03:21 PM
iOS 7.1 Launching in March Following Lengthy Testing Period? MacRumors MacRumors.com News Discussion 120 Jan 3, 2014 10:56 PM
Choosing "All my files" in File Open Dialogs leads to lengthy beach balls.... paulCC OS X 10.8 Mountain Lion 1 Apr 24, 2013 07:40 AM
Apple Updates Aperture and iPhoto With Lengthy Changelogs MacRumors Mac Blog Discussion 47 Nov 10, 2012 02:47 PM
iCloud sharing documents - Lengthy question. kryptekz OS X 10.8 Mountain Lion 0 Oct 8, 2012 11:15 PM

Forum Jump

All times are GMT -5. The time now is 01:34 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC