• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSCell Text Alignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCell Text Alignment


  • Subject: NSCell Text Alignment
  • From: Daniel Todd Currie <email@hidden>
  • Date: Thu, 14 Oct 2004 11:29:48 +0900

There are two NSCell behaviors that I have seen in various apps and would like to adopt in my own app:

1. When the user is editing the cell text and it becomes longer than the width of the cell, the contents become right-justified so that the user can see the insertion point and the new text they are adding.

2. When the user is done editing a cell with text that is longer than the width of the cell, an ellipsis is placed at the end of the viewable text to show that it continues out of the viewable rect. Furthermore, I would like to be able to place the ellipsis in the middle of the word in some cases, the way Finder.app does in column view to show the beginning of the word and its file name extension.

Are these standard behaviors that I have not found, or will I have to implement these behaviors myself? In case it matters, I am using a subclass of NSTextFieldCell that is very similar to/based on the ImageAndTextCell found in "/Developer/Examples/AppKit/DragNDropOutlineView/".

TIA,

-- DTC

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: NSCell Text Alignment
      • From: Daniel Todd Currie <email@hidden>
    • Re: NSCell Text Alignment
      • From: Daniel Todd Currie <email@hidden>
  • Prev by Date: Re: How to validate NSComboBoxCell selection
  • Next by Date: Re: HTML syntax coloring
  • Previous by thread: Re: How to validate NSComboBoxCell selection
  • Next by thread: Re: NSCell Text Alignment
  • Index(es):
    • Date
    • Thread