• 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: NSFontTraitMask Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSFontTraitMask Question


  • Subject: RE: NSFontTraitMask Question
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Mon, 7 Oct 2002 16:55:24 -0400

How about one of the attributesAtIndex methods in NSAttributedString?

NSTextStorage is a subclass of NSAttributedString.

Jonathan

> -----Original Message-----
> From: email@hidden
> [mailto:email@hidden]On Behalf Of Tom Gray
> Sent: Monday, October 07, 2002 3:00 PM
> To: email@hidden
> Subject: NSFontTraitMask Question
>
>
> Stumped again.
>
> I have an NSTextView subclass and I am trying to determine if the
> character clicked on is "bold".
>
> I can't find a method that will allow me to "read" the font traits of a
> character. I can set the font traits with:
>
> [NSTextStorage applyFontTraits:myTraitMask range:myRange];
>
> However, once set, I can't find a method that will allow me to
> determine the traits.
>
> Note, the traits (ie. bold) are different then the font attributes.
>
> I am completely stumped. Any ideas?
>
>
> Tom Gray
> -------------
> email@hidden
> or
> email@hidden
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >NSFontTraitMask Question (From: Tom Gray <email@hidden>)

  • Prev by Date: Re: Anybody know how to use NSHighlightRect ?
  • Next by Date: RE: case-insensitive strings
  • Previous by thread: NSFontTraitMask Question
  • Next by thread: Re: NSFontTraitMask Question
  • Index(es):
    • Date
    • Thread