• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Suggest reasons for this crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggest reasons for this crash?


  • Subject: Re: Suggest reasons for this crash?
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 6 Oct 2009 21:37:36 -0700

On Tue, Oct 6, 2009 at 8:46 PM, Adam R. Maxwell <email@hidden> wrote:
> That's a fair question; I don't have a good definition :).  However, if I have a master-detail view with a non-editable textview, or am updating a text view with live output from an NSTask, I don't care if the delegate gets notified of changes (so have never seen a reason to call shouldChangeTextInRange:replacementString:).  There are other situations where you might want to unconditionally replace the characters of the text storage, as well.  The doc examples I've seen don't call shouldChangeTextInRange:replacementString:, but I haven't done an exhaustive search.

If you have a non-editable text view, then you are probably just
calling -setString: or -setTextStorage: on it anyway.  In that case it
does not make sense to call
-shouldChangeTextInRange:replacementString:.  I can't imagine the
usefulness of replacing the contents of the text storage instead of
just swapping in the new one.

--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

  • Follow-Ups:
    • Re: Suggest reasons for this crash?
      • From: Graham Cox <email@hidden>
References: 
 >Suggest reasons for this crash? (From: Graham Cox <email@hidden>)
 >Re: Suggest reasons for this crash? (From: Kyle Sluder <email@hidden>)
 >Re: Suggest reasons for this crash? (From: Graham Cox <email@hidden>)
 >Re: Suggest reasons for this crash? (From: Kyle Sluder <email@hidden>)
 >Re: Suggest reasons for this crash? (From: Graham Cox <email@hidden>)
 >Re: Suggest reasons for this crash? (From: "Adam R. Maxwell" <email@hidden>)
 >Re: Suggest reasons for this crash? (From: Kyle Sluder <email@hidden>)
 >Re: Suggest reasons for this crash? (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Issues with NSWindowDelegate on multiple Mac OS X platforms
  • Next by Date: Re: Issues with NSWindowDelegate on multiple Mac OS X platforms
  • Previous by thread: Re: Suggest reasons for this crash?
  • Next by thread: Re: Suggest reasons for this crash?
  • Index(es):
    • Date
    • Thread