Custom Attributes
Custom Attributes
- Subject: Custom Attributes
- From: email@hidden
- Date: Wed, 9 Nov 2005 11:40:39 +0000
Hi,
I am trying to figure out how to implement my own custom attributes.
I want some of these attributes to change the way that text is
rendered. For instance I need an "all caps" attribute.
I discovered that I can easily create whatever attributes I want -
but the more challenging part is implementing the rendering of the
new attribute.
I gather I have to subclass NSTextManager and specifically override -
drawGlyphsForGlyphRange.
This will need to search the text to be rendered for my new attribute
and render the attributed text in the manner I want.
But I am not clear what the over-ridden method will look like and how
to go about rendering the new glyphs.
Is there any place I should be looking for help?
Glyn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden