Re: text storage aggregator (again)
Re: text storage aggregator (again)
- Subject: Re: text storage aggregator (again)
- From: Martin Wierschin <email@hidden>
- Date: Thu, 2 Mar 2006 13:32:32 -0800
Hi Todd,
How can I construct the output of the aggregator in such a way that
I could allow the user to choose whether they want to append to
object 1 or prepend to object 2?
From the code you posted earlier it looks like you were inserting a
newline between the underlying chunks. If the selection is before the
newline then I would assume they want to append, and if it comes
after the newline then prepend. I would probably have your NSTextView
or NSLayoutManager subclass draw a horizontal divider between the
chunks to make this clear to the user.
For instance, suppose a user highlight a selection from the middle
of object 1 to the middle of object 2, cuts, then pastes this
selection into object 3. Do I split object 3 in half? Do I merge
objects one and two? Or do I truncate the change so it is contained
in a single object for the cut and again for the paste?
I think the answer to this depends on what exactly you are
aggregating and how the user understands the underlying chunks. I
assume from your first question that the user cares about
distinguishing the chunks. If they represent something like random
notes (like Stickies) I bet the user doesn't want to go creating new
splits when they paste. On the other hand, if the chunks are
something like dialogue for specific characters in a play then maybe
preserving the splits is more important.
~Martin
_______________________________________________
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