Re: text storage aggregator (again)
Re: text storage aggregator (again)
- Subject: Re: text storage aggregator (again)
- From: Todd Ransom <email@hidden>
- Date: Thu, 2 Mar 2006 11:54:21 -0700
I have the text storage aggregator described previously (http://
www.cocoabuilder.com/archive/message/cocoa/2006/2/23/157366) working
in a basic capacity. It will aggregate multiple text storage objects
and allow the user to edit them. But I am running into a couple of
conceptual problems and wanted to ask the list for advice.
1. Boundary ambiguity. When presenting a series of objects as one
continuous section of text the boundaries of the objects are
ambiguous. The NSRange that specifies the end of object 1 is the same
NSRange that would specify the beginning of object 2. 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?
2. Object integrity. If I allow the user to make arbitrary selections
for cut and paste it is possible for them to violate the integrity of
the underlying component objects. 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?
Thanks in advance,
Todd Ransom
Return Self Software
http://returnself.com
_______________________________________________
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