Kyle, thanks for the help. That at least got my test app straightened out.
I have filed Bug ID# 7675789 (with the test app) on the fact that the bound
text does not update from programmatic insertions.
In the test app, I can simply update the bound value myself every time there
is a programmatic u
Well, I was going to argue with you, but your post triggered further
investigation. I realized that in the past, I had constructed my own.
Somehow, in this case, I got it in my head that the bindings would make the
text view use my NSTextStorage. Duh. So I changed to the following in the
test ap
On Sun, Feb 21, 2010 at 2:00 PM, Gordon Apple wrote:
> This is getting stranger by the minute. I ruled out the menu issue as the
> cause, then created a test app from the standard doc template. Window
> contain a scrolling text view and a button. The app edits and archives
> correctly (compiled
This is getting stranger by the minute. I ruled out the menu issue as the
cause, then created a test app from the standard doc template. Window
contain a scrolling text view and a button. The app edits and archives
correctly (compiled using GC). "init" sets an initial string in ts. The
text vi
On Sat, Feb 20, 2010 at 2:33 PM, Gordon Apple wrote:
> Like I said in the post, I tried that. Same result. Just to make sure it
> had nothing to do with the attachment character, I also tried the following
> and got the same result:
The point I was making is that you are calling
-edited:range:c
Hold off guys. I'm getting a s--- load of console messages from a related
dynamically loaded menu and possibly an exception thrown. Let me deal with
that and see if the problem persists.
=
Like I said in the post, I tried that. Same result. Just to make sure it
Like I said in the post, I tried that. Same result. Just to make sure it
had nothing to do with the attachment character, I also tried the following
and got the same result:
[store beginEditing];
[store insertAttributedString:[[NSAttributedString alloc]
initWithString:@"$"] atIndex:index
On Sat, Feb 20, 2010 at 9:11 AM, Gordon Apple wrote:
> [store insertAttributedString:string atIndex:index];
> NSRange range = NSMakeRange(index, 0);
> [store edited:NSTextStorageEditedAttributes |
> NSTextStorageEditedCharacters range:range changeInLength:[string length]];
You should be
I have a window with an NSTextView. If I edit the text normally, even
adding a single character, it behaves properly, I can save, close, reopen,
and the change is present. If I close after edit, it asks to save, like it
is supposed to. However, if I programmatically insert an attachment (wi