• 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: Overriding text size in NSTextStorage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Overriding text size in NSTextStorage
      • From: Gideon King <email@hidden>
References: 
 >Overriding text size in NSTextStorage (From: Gideon King <email@hidden>)
 >Re: Overriding text size in NSTextStorage (From: Jens Alfke <email@hidden>)
 >Re: Overriding text size in NSTextStorage (From: Gideon King <email@hidden>)

  • Prev by Date: Re: Problem mac os X version 10.6 when using sprinft
  • Next by Date: Re: Overriding text size in NSTextStorage
  • Previous by thread: Re: Overriding text size in NSTextStorage
  • Next by thread: Re: Overriding text size in NSTextStorage
  • Index(es):
    • Date
    • Thread