• 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
Custom Attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Custom Attributes
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Get Url Images with more than 72dpi
  • Next by Date: Re: Cocoa optimization
  • Previous by thread: Get Url Images with more than 72dpi
  • Next by thread: Re: Custom Attributes
  • Index(es):
    • Date
    • Thread