On Sep 15, 2009, at 9:59 PM, Graham Cox <graham....@bigpond.com> wrote:
3. I am re-using the textview for different edits, much like the field editor. This involves replacing the text storage for a new edit, by calling -replaceTextStorage on the text view's layout manager. Then, undo fails because the targeted text storage no longer exists:
Oh, you just made the text system *very* mad. Somewhere in the soca it says you must use -[NSTextStorage setTexrStorage:] to do what you want. You don't want to know the morass of code we have in OmniOutliner to support moving the text system around, because we don't want to create NSLayoutManagers for empty rich text cells.
--Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com