Re: Set the bold style in an attributedstring
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.