• 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
Text Array View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Text Array View


  • Subject: Text Array View
  • From: Rachel Blackman <email@hidden>
  • Date: Fri, 16 Sep 2005 00:04:09 -0700

I have a situation wherein I have an array of NSAttributedString objects. Things can be appended onto the end of this array, and when it's greater than a certain size, the oldest one falls off.

I need to be able to display this array in something akin to an NSTextView. I attempted to actually just USE an NSTextView, using an NSTextStorage for the backing, but trying to snip the oldest bits off and put the newest bits on... well, it caused some serious performance issues.

Since every element in the array is guaranteed to be a paragraph (and thus have a rectangular view) and changed independently of other elements, I'm considering simply generating an NSTextView for each element and having a custom view that displays the set of NSTextViews. However, before I plunge into this... it just seems like it's not the ideal solution.

This is Cocoa, after all; there should be some more elegant way to do this! :)

At any rate, I'm afraid that I may have reached that point where one is so mired in trying to resolve a design problem that one loses her perspective. So I figured I'd toss this query out, in case anyone else had input or brilliant design ideas I've overlooked.

--
Rachel 'Sparks' Blackman -- sysadmin, developer, mad scientist
"If it is not broken, give me five minutes to redesign it!"

_______________________________________________
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: Text Array View
      • From: Rachel Blackman <email@hidden>
  • Prev by Date: Re: Playing SWF Movies
  • Next by Date: Strange problem with the help menu and minimizing the app
  • Previous by thread: Re: Build Log in Xcode
  • Next by thread: Re: Text Array View
  • Index(es):
    • Date
    • Thread