• 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
Re: "exponent" action in NSTextView subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: "exponent" action in NSTextView subclass (SOLVED)
      • From: email@hidden
References: 
 >"exponent" action in NSTextView subclass (From: email@hidden)
 >Re: "exponent" action in NSTextView subclass (From: Martin Wierschin <email@hidden>)
 >Re: "exponent" action in NSTextView subclass (From: email@hidden)

  • Prev by Date: Re: Newbie: Dynamically filling NSTableView
  • Next by Date: Re: Multiple QTMovies and Images under one controller
  • Previous by thread: Re: "exponent" action in NSTextView subclass
  • Next by thread: Re: "exponent" action in NSTextView subclass (SOLVED)
  • Index(es):
    • Date
    • Thread