• 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: NSTextTab Troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextTab Troubles


  • Subject: Re: NSTextTab Troubles
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 22 Dec 2003 10:12:47 -0800

On Dec 20, 2003, at 11:25 AM, Jonathan Jackel wrote:

1. You don't need to begin and end editing of a text storage when you are programmatically changing/creating its contents. You only need to use "editing" methods to simulate or override what the user can do.

I think you're confusing the text storage begin/end editing methods with the text view should/did change methods. The text storage begin/end editing methods cause text storage change notifications to be coalesced, so they're appropriate whenever you're making a series of changes to a text storage all at once. The text view should/did change methods are the ones that are appropriate for user-driven changes to text, since they call the delegate, register for undo, and so forth.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSTextTab Troubles (From: John Devor <email@hidden>)
 >Re: NSTextTab Troubles (From: Jonathan Jackel <email@hidden>)

  • Prev by Date: Re: Drawing custom text attributes
  • Next by Date: Re: NSTextTab Troubles
  • Previous by thread: Re: NSTextTab Troubles
  • Next by thread: Re: NSTextTab Troubles
  • Index(es):
    • Date
    • Thread