• 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
Re: Make characters same width in textview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make characters same width in textview


  • Subject: Re: Make characters same width in textview
  • From: Millennium <email@hidden>
  • Date: Sat, 16 Mar 2002 16:01:34 -0500

Exactly. Monospaced fonts are considered the way to do this. Courier and
Monaco come with all Macs, and should fit your needs well (Courier has
serifs, Monaco does not).

It's just a matter of setting the TextView's font to Courier or Monaco;
whichever you feel is appropriate. For readability concerns, you should
probably display Monaco but print Courier.

>Why don't you just use a fixed width font as the font for the text view?
>
>Eric
>
>On Saturday, March 16, 2002, at 01:51 PM, email@hidden wrote:
>
>> I am setting the string of a NSTextView and I would like the characters
>> to all be the same width. I am creating a table from a database query
>> and of course things lining up correctly is of upmost importance.
>> Eventually, I will be using table view but I wanted to get this working
>> first. Nothing looked like what I was looking for in the docs but then
>> again I don't know the term for "having characters of the same width".
>> Perhaps someone could point me in the right direction or provide sample
>> code for this?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Make characters same width in textview
      • From: Matt Judy <email@hidden>
References: 
 >Re: Make characters same width in textview (From: Eric Peyton <email@hidden>)

  • Prev by Date: Theory, Practice, Down-Time...
  • Next by Date: Re: How to force validation of a NSTextField?
  • Previous by thread: Re: Make characters same width in textview
  • Next by thread: Re: Make characters same width in textview
  • Index(es):
    • Date
    • Thread