Closed bdolman closed 9 years ago
Thanks for reporting this. We are testing a fix, which we hope to make available shortly.
Great, thank you for attending to it. On Aug 30, 2014, at 2:28 PM, gscown notifications@github.com wrote:
Thanks for reporting this. We are testing a fix, which we hope to make available shortly.
— Reply to this email directly or view it on GitHub.
Here is a release candidate of the 3.0 SDK with this fix:
http://smilesoftware.com/downloads/test/teTouchSDK_3.0b3.zip
We expect to push to GitHub later this week. We'd certainly welcome feedback as to whether this works for you. We do have confirmed feedback from another developer that this resolves the issue, but we certainly welcome the additional confirmation.
Yep, beta build fixes it. Looking forward to the official release this week!
I just updated to the latest framework moments ago and I now see this same problem. When will this update become available? Thanks.
Hi @rmaddy. I just cloned master of the TextExpanderTouchSDK project and replaced the call to textView:shouldChangeTextInRange: in SMFirstViewController in TextExpanderDemoApp with @bdolman's line above then ran successfully on iOS 8. The calls to the undo manager which originate from the TextExpander touch SDK when provideUndoSupport is true (as is the default) are balanced. If you can take me through a reproducible case using TextExpanderDemoApp, that would be very helpful. You might also double-check that your framework was indeed updated. Maybe you just need to do a clean build after having replaced it.
I've done two clean builds - the 2nd being after doing a clean clone of master. Still seeing the problem under iOS 8. I'll see if I can put together a simple demo. Thanks.
@gscown I found that the problem is only happening in cases where I am already doing my own "undo" support for a UITextField. I solved the problem by using provideUndoSupport = NO;
on the SMTEDelegateController. The crash was not happening on another UITextField that didn't have my own undo support.
Nowhere in my code was I calling NSUndoManager disableUndoRegistration
so there seems to be a mismatched call to enableUndoRegistration
in your library. My code is calling prepareWithInvocationTarget:
and setActionName:
on my local NSUndoManager
each time the text field is changed.
I'm seeing this with the latest TextExpander SDK and iOS 8, for fields that aren't using an Undo Manager.
I have this problem in iOS 8.0 and TextExpander 3.0.2 when I'm already using an undo manager. Setting the delegate's provideUndoSupport property to NO resolves my issue.
I believe we've resolved the last instance of this in the 3.0.3 SDK, which you'll find here. If you're still able to reproduce with the demo app and the 3.0.3 SDK, please send us details: http://smle.us/support
Ah, very well could be. I attempted to update CocoaPods first, but I guess it didn't grab it. Thanks!
SDK Version: 2.3.1
I have a TextExpander-enabled text view that's using
-[UITextView textView:shouldChangeTextInRange:replacementText:]
to replace text in this manner:Which results in this exception:
I can workaround this by disabling undo support using
provideUndoSupport = NO
.This bug does not manifest itself on iOS 7.