• 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: Set the bold style in an attributedstring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set the bold style in an attributedstring


  • Subject: Re: Set the bold style in an attributedstring
  • From: Kevin Callahan <email@hidden>
  • Date: Sat, 17 Aug 2002 11:31:51 -0700

Check out:

http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSAttributedString.html

and

http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSMutableAttributedString.html
Additions to the NSMutableAttributedString class primarily involve setting graphical attributes, such as font, super- or subscripting, and alignment, and making these attributes consistent after changes.

- (void)addAttribute:(NSString *)name value:(id)value range:(NSRange)aRange
- (void)addAttributes:(NSDictionary *)attributes range:(NSRange)aRange


http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ ApplicationKit/ObjC_classic/TypesAndConstants/AppKitTypes.html
NSAttributedString-Attributes

NSString *NSFontAttributeName;
NSString *NSParagraphStyleAttributeName;
NSString *NSForegroundColorAttributeName;
NSString *NSUnderlineStyleAttributeName;
NSString *NSSuperscriptAttributeName;
NSString *NSBackgroundColorAttributeName;
NSString *NSAttachmentAttributeName;
NSString *NSLigatureAttributeName;
NSString *NSBaselineOffsetAttributeName;
NSString *NSKernAttributeName;
NSString *NSLinkAttributeName;

- Kevin


On Saturday, August 17, 2002, at 07:25 PM, malcom wrote:

How can i set the bold style (or italic/underline) in an attributedString?

Daniele
_______________________________________________
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: 
 >Set the bold style in an attributedstring (From: malcom <email@hidden>)

  • Prev by Date: Grabbing and dragging background (only answer if you have the time)
  • Next by Date: [OT}Interface Builder just deleted my entire interface!
  • Previous by thread: Set the bold style in an attributedstring
  • Next by thread: ObjC/Cocoa in university curricula?
  • Index(es):
    • Date
    • Thread