• 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
Sharing text selection across views/cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sharing text selection across views/cells


  • Subject: Sharing text selection across views/cells
  • From: Rachel Blackman <email@hidden>
  • Date: Thu, 21 Aug 2008 14:58:34 -0700

Here's a random strange question. Given a highly customized NSTableView, where each row is a single cell and each cell contains one or more NSTextViews, each with a separate paragraph (potentially formatted with different justifications and so on), is there any reasonable way to make them share their selection (so that you can select upwards, crossing view and cell boundaries)? An example would be the iChat 'bubble chat' view, where the paragraphs can be aligned on either side with bubbles behind them, but you can select the overall greater whole. Tableview makes great sense here as you do have a specific line-by-line datasource to work with.

All my experiments so far suggest the only solution to the selection issue is to create a highly customized NSTextView subclass, making each 'row' -- each paragraph -- a separate NSTextContainer... which is a horrible overloading of the text system and seems not the best way to do so. I've been following that path, but... any thoughts on better solutions?

Thanks!

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Sharing text selection across views/cells
      • From: "Matt Ball" <email@hidden>
  • Prev by Date: Vancouver - We Need A Mac Guru @ macProVideo
  • Next by Date: [SOLVED]: Scaling an NSImage makes the edges disappear.
  • Previous by thread: Vancouver - We Need A Mac Guru @ macProVideo
  • Next by thread: Re: Sharing text selection across views/cells
  • Index(es):
    • Date
    • Thread