Re: Suggest reasons for this crash?
Re: Suggest reasons for this crash?
- Subject: Re: Suggest reasons for this crash?
- From: Kyle Sluder <email@hidden>
- Date: Tue, 6 Oct 2009 18:01:26 -0700
On Tue, Oct 6, 2009 at 5:53 PM, Graham Cox <email@hidden> wrote:
> Aha! Thanks - can you point me to the relevant documentation on that? I was
> working on the principle that methods like this were high level and were
> managing that before-and-after notification/setup stuff for me.
First Google result for "shouldchangetextinrange": Text Editing
Progamming Guide, Subclassing NSTextView, Notifying about Changes to
the Text. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TextEditing/Tasks/Subclassing.html
Also in the documentation for
-shouldChangeTextInRange:replacementString: (but if you know to look
there you probably already know the solution).
This is something you need to check for whenever you might possibly
ever hook up a text view (including the field editor!) to a text
storage. So if you're storing text storages in your model, for
example, like in a word processor. This isn't going to show up if
you're just using -setString: (the typical case).
--Kyle Sluder
_______________________________________________
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