Re: Overriding text size in NSTextStorage
Re: Overriding text size in NSTextStorage
- Subject: Re: Overriding text size in NSTextStorage
- From: Kyle Sluder <email@hidden>
- Date: Mon, 10 May 2010 10:16:27 -0700
On Mon, May 10, 2010 at 9:19 AM, Gideon King <email@hidden> wrote:
> From a practical point of view, I haven't found a delegate method that allows you to alter the proposed attributes. The closest one is one that acts on proposed typing attributes, and I assume that could change with moving the insertion point, as well as when changing attributes, and would presumably be too late in the piece anyway.
You want to implement -textStorageWillProcessEditing: in your text
storage delegate.
http://developer.apple.com/mac/library/documentation/cocoa/reference/NSTextStorageDelegate_Protocol/Reference/Reference.html#//apple_ref/doc/uid/TP40008627-CH1-DontLinkElementID_2
--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