undo w/ nstextview not automatically scrolling to action point
undo w/ nstextview not automatically scrolling to action point
- Subject: undo w/ nstextview not automatically scrolling to action point
- From: email@hidden
- Date: Thu, 23 Feb 2006 00:06:52 -0500
Hello,
My undo support on a subclass of NSTextView is working fine with one
small caveat: If the undo is taking place in an area not currently
displayed in a scroll view, and I "undo" the change (like characters
typed in), the view does not scroll to the point where the action is
taking place. So the undo happens, but it's not obvious that it
happens since it doesn't behave normally, like say, TextEdit does.
To my knowledge, simple undo support for this tasks should only
require checking the box in IB that specifies to allow undo. I've
spent a while digging around and can't pinpoint what's going on. I've
also reviewed the various "create a text editor" tutorials and it
doesn't look like I need to be doing anything special.
Any rough ideas of what could be happening that would prevent a text
view from scrolling to the point of action with an undo? I'm sure
I've mangled up something but am still working to figure out what it
may be...
M.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden