• 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: How to set attibutes for NSString's drawInRect: withAttributes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set attibutes for NSString's drawInRect: withAttributes?


  • Subject: Re: How to set attibutes for NSString's drawInRect: withAttributes?
  • From: Charles Jolley <email@hidden>
  • Date: Fri, 2 Nov 2001 16:26:42 -0600

Check the docs on "NSAttributedString Additions" in the App Kit for a list of some of the keys pairs that you can use to control the string formatting.

-C

On Friday, November 2, 2001, at 02:27 PM, Fei Li wrote:

Hello all,
I want to use NSString addition's drawInRect:(NSRect)
withAttributes:(NSDictionary*) to draw a string in a rect. But how can I set
attributes for the string? What kind of key and value do I need to set for
attributes' NSDictionary, and can I I change font, size for drawing the
strings by set this NSDictionary?

Thanks for any information!

Fei
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: How to set attibutes for NSString's drawInRect: withAttributes?
      • From: Finlay Dobbie <email@hidden>
References: 
 >How to set attibutes for NSString's drawInRect: withAttributes? (From: Fei Li <email@hidden>)

  • Prev by Date: Re: Authorization.h
  • Next by Date: Re: How to set attibutes for NSString's drawInRect: withAttributes?
  • Previous by thread: How to set attibutes for NSString's drawInRect: withAttributes?
  • Next by thread: Re: How to set attibutes for NSString's drawInRect: withAttributes?
  • Index(es):
    • Date
    • Thread