Attributed titles for buttons
Attributed titles for buttons
- Subject: Attributed titles for buttons
- From: Andrew Merenbach <email@hidden>
- Date: Mon, 28 Apr 2003 17:18:13 -0700
I'm in the process of reworking a periodic table of the elements in a
program of mine, and have wondered as to the soundness of my drawing
method.
I currently override drawInteriorWithFrame: to fill in a colored
background and call custom methods to size, position, and place the
title (which I use for the elemental symbol) and alternateTitle (which
I use for the atomic number) at different positions within the button
cell.
I've begun to experiment, however, with the concept of using an
attributed string for the title, which would allow me to remove my
positioning methods. Would the creation and manipulation of an
NSMutableAttributedString be slower than actually drawing the string
myself?
Take care,
Andrew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.