Re: Suggest reasons for this crash?
Re: Suggest reasons for this crash?
- Subject: Re: Suggest reasons for this crash?
- From: Graham Cox <email@hidden>
- Date: Wed, 7 Oct 2009 14:13:16 +1100
On 07/10/2009, at 1:54 PM, Adam R. Maxwell wrote:
I think it's worth noting that Apple's code examples don't do this:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TextArchitecture/Tasks/SimpleTasks.html
The way I read the page Kyle linked to andhttp://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TextEditing/Tasks/BatchEditing.html
is that this is only for user-initiated changes (which may or may
not be appropriate, depending on what you're doing).
If this is really necessary, hopefully it'll be documented, or one
of the text system guys can step in and clarify...I'd really like to
know since I've been doing this for years without calling
shouldChangeTextInRange:replacementString:.
Hmmm, now I'm a little confused again.
It seems I should be doing beginEditing/endEditing and/or
shouldChangeTextInRange:replacementString:/didChangeText but it's not
clear whether it's either/or.
Doing both seems to be harmless, but I also don't yet have
confirmation whether the crash is fixed, since it's not reproducible
locally anyway.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden