Overriding text size in NSTextStorage
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