• 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: Laying out complex text objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Laying out complex text objects


  • Subject: Re: Laying out complex text objects
  • From: Kevin <email@hidden>
  • Date: Tue, 5 Dec 2006 16:11:21 -0800

You should be able to accomplish that with an NSOutlineView. If you're worried because of the "many lines long" part, check out the outlineView: heightOfRowByItem: delegate method. You may need to do some twiddling or maybe write a subclass of NSCell, but I bet you'd be able to just drop it in and watch it work, unless I misunderstand what you're doing.

On Dec 3, 2006, at 8:56 AM, Thomas Davie wrote:

Hi,
My program needs to display a cross between a bullet list of text, and an outline view, in that each bullet in the list should be a disclosure triangle, that can be closed or opened. Bullets should be draggable and rearangable, but in the mean time the text in each section should be many lines long.


I've been thinking about using an NSLayoutManager for this, but it doesn't seem quite appropriate for the task, in that it requires all the text to be enclosed within a single NSTextStorage object, while I need to maintain an explicit tree structure (and several seperate NSTextStroage objects for each node in the tree).

Can anyone think of an appropriate way of doing this?

Help much appreciated.

Thanks

Tom Davie
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Laying out complex text objects (From: Thomas Davie <email@hidden>)

  • Prev by Date: Re: NSTableView first column reorder...
  • Next by Date: Framework for displaying Trees graphically?
  • Previous by thread: Laying out complex text objects
  • Next by thread: Trouble Writing to File With NSFileHandle
  • Index(es):
    • Date
    • Thread