• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Strange behaviour of text insertion in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange behaviour of text insertion in NSTextView


  • Subject: Strange behaviour of text insertion in NSTextView
  • From: Jeremy Dronfield <email@hidden>
  • Date: Mon, 19 Apr 2004 16:26:50 +0100

I have a text view which allows the user to insert text directly from a file. It's done very simply:

fileText = [[NSAttributedString alloc] initWithPath:fromPath documentAttributes:NULL];

[textView insertText:fileText];

The strange behaviour is this: when the source file at fromPath is in MS Word doc format, the insertion dirties the document and can be undone, but when the source is rtf or rtfd, it slips past the text view's undo manager completely unobserved. The document stays clean, and the insertion can't be undone. Has anyone else come across this behaviour, and can anyone explain it?

-Jeremy

===================================
SkoobySoft, home of viJournal
email: email@hidden or visit:
http://freespace.virgin.net/jeremy.dronfield/skoobysoft.html
===================================
_______________________________________________
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.


  • Follow-Ups:
    • Re: Strange behaviour of text insertion in NSTextView
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Rapid use of NSTextField
  • Next by Date: Re: Using POSIX threads with Cocoa?
  • Previous by thread: How to make mouseDown repond for both the matrix and Scrollview?
  • Next by thread: Re: Strange behaviour of text insertion in NSTextView
  • Index(es):
    • Date
    • Thread