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

Overriding text size in NSTextStorage


  • Subject: Overriding text size in NSTextStorage
  • From: Gideon King <email@hidden>
  • Date: Mon, 10 May 2010 21:54:19 +1000

Hi, I am trying to override the setting of text size in my text storage subclass. I have overridden the setAttributes:range: method, and told the text to use a standard font size (keeping the other font attributes), but when I am editing, and use the font panel to set the font, although the correct font size is used, the text is moved up or down depending on the size of the font selected.

This seems to suggest that the font selection is doing something at the text view end independent of what is set in the text storage.

Can someone enlighten me as to what else I need to do to avoid this undesired effect? Do I need to override something in the NSTextView before it gets to the text storage?


Thanks

Gideon







_______________________________________________

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: Jens Alfke <email@hidden>
  • Prev by Date: Re: How do you set the text in an NSTextView?
  • Next by Date: KeyPathsForValuesAffectingValueForKey confusion
  • Previous by thread: Re: extent of the "scratch pad" nature of a Core Data managed object context
  • Next by thread: Re: Overriding text size in NSTextStorage
  • Index(es):
    • Date
    • Thread