Re: NSTextTab Troubles
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.