tab delimited text parsing on paste

Daniel Flatin dflatin at rcn.com
Mon Jan 3 11:49:48 PST 2005


I have recently been moving data from a set of tables in html format to a multi-column outline in
OO3. These tables consist of text and numerical data. I have found that if the outline column data
types are not text, the pasted data is not parsed, but rather OO3 complains:

"Values is of the wrong type. Was expecting a NSDecimalNumber, but got a OOTextStorage"

In addition to the poor grammar, I was sorry to see that OO3 does not even attempt to parse the
pasted text. To see this in action, just create a simple outline with one column in addition to the
topic and set it to be numerical. Then paste in a few lines like:

item1   1
item2   2
item3   3

Be sure you don't have a text insertion point (flashing vertical bar) in the topic column before
pasting or all your text will be inserted into one topic field.

Is this a bug or expected behavior? I should point out that the data can be imported if all the
columns are text, and after all the data has been imported the column type can be changed to number
and then the values are properly parsed. In a large outline this leads to another behavior which I
think is essentially cosmetic, but points out a dramatic need for code optimization. When the data
type of a column in a large outline (~1500 rows) is changed, the values are not updated in any sort
of timely way. You can force them to be updated by collapsing and expanding the parent, but it is
disconcerting to see your data just disappear.

Dan



More information about the OmniOutliner-Users mailing list