Remnants in NSTextView
Remnants in NSTextView
- Subject: Remnants in NSTextView
- From: Kurt Marek <email@hidden>
- Date: Sun, 23 Nov 2003 10:40:06 -0800
I have an NSTextView that is bound to an NSMutableString. The content
of the NSTextView is a selection of an array controlled by an
NSArrayController tied to a tableView, such that when a table row is
selected the NSTextView changes to show the NSMutableString for that
record. This seems to work okay in that I can enter and edit text. The
problem is that if I enter a single line of text in one record (say the
first line) and multiple lines in another record, then I get remnants
of the multiple line text entry when I go back to the first record. For
example, if the text in the NSTextView of the first record is simply:
'One line of text'
and the text of the second record is:
'Second entry
another line
yet another line'
When I switch back to the first record the text field will display:
'One line of text'
another line
yet another line'
If I click on the field it corrects itself by removing the extraneous
lines.
Any ideas?
Kurt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.