• 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: Multi-column text in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-column text in NSTextView


  • Subject: Re: Multi-column text in NSTextView
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 15 Nov 2006 08:27:01 -0800


On Nov 14, 2006, at 10:33 PM, Greg Hoover wrote:

I'm trying to create multi-column text in a NSTextView. I think I can sublcass the NSTextAttachmentCell to render the blank space necessary for creating column alignment, but that's a pain, if it even works. Or possibly subclassing NSAttributedString and override the size method to return the required padding. Anybody have an easier solution for this?

Take a look at /Developer/Examples/AppKit/TextSizingExample. This shows many different ways of configuring NSTextViews, including a two- column case. Tables are not really a substitute for multiple columns in general, although they might be usable in certain special cases.


Douglas Davidson

_______________________________________________
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


References: 
 >Multi-column text in NSTextView (From: Greg Hoover <email@hidden>)

  • Prev by Date: Re: Re: NSImage and PNG problems
  • Next by Date: Cocoa Bindings - removeObserver if I know the observed instance
  • Previous by thread: Multi-column text in NSTextView
  • Next by thread: How To Create Very Huge Images (2 GB and above)
  • Index(es):
    • Date
    • Thread