Re: "exponent" action in NSTextView subclass
Re: "exponent" action in NSTextView subclass
- Subject: Re: "exponent" action in NSTextView subclass
- From: Douglas Davidson <email@hidden>
- Date: Wed, 7 Mar 2007 09:03:11 -0800
On Mar 7, 2007, at 3:01 AM, email@hidden wrote:
123{NSFont = "Helvetica 34.00 pt. P [] (0x01592130) fobj=0x0452ba90,
spc=9.45"; }456{
NSFont = "Helvetica 34.00 pt. P [] (0x01592130) fobj=0x0452ba90,
spc=9.45";
NSFontNameAttribute = "Helvetica 17.00 pt. P [] (0x01592210)
fobj=0x0451ecd0, spc=4.72";
NSSuperScript = 1;
}7{NSFont = "Helvetica 34.00 pt. P [] (0x01592130) fobj=0x0452ba90,
spc=9.45"; }
So the 17pt font was just added and ignored afterwards ... I
can't see
how to fix this, since
"NSFont" is not an attribute ?
@"NSFont" is an attribute. To be precise, it is the value of the
NSString constant whose name is NSFontAttributeName, which is the
standard constant defined in <AppKit/NSAttributedString.h>, and
understood by the text system as the attribute name for the font
attribute.
You are using @"NSFontNameAttribute", which is not anything that is
understood by the text system. Use the constant NSFontAttributeName
instead.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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