I'm having issued with a subclassed NSTextView displaying linked
text
as I'd like it to. The link text attributes I specify are working,
except for the font name attribute. The link text appears to be
rendered in the Helvetica font, while my default attributes call for
Monaco.
NSFontNameAttribute (and others that have a pattern of
NSFont*Attribute] are for working with NSFontDescriptor.
The original code was almost correct; just change the key name to
NSFontAttributeName. As with other keys that can be used, the
pattern is NS*AttributeName. And, for this particular key, you do
in fact want to provide the actual font instance.
D'oh! Thanks for the correction... guess I jumped in too quickly
without checking my work.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
robb albright
software engineer – Macintosh and cross-platform
Vernier Software & Technology
_______________________________________________
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