Re: inserting graphics into NSString output
Re: inserting graphics into NSString output
- Subject: Re: inserting graphics into NSString output
- From: Douglas Davidson <email@hidden>
- Date: Thu, 16 May 2002 17:49:03 -0700
On Monday, May 13, 2002, at 03:06 AM, Scott Anguish wrote:
You can make a new NSAttributedString with an attachment by
calling +attributedStringWithAttachment: and passing the
NSTextAttachment as the argument.
I'd just like to add, for those of you who want to know how this works,
that an attachment is represented as a special character,
NSAttachmentCharacter, with the attribute NSAttachmentAttributeName,
whose value is the NSTextAttachment. attributedStringWithAttachment: is
a convenience method that creates a one-character attributed string of
this form.
Douglas Davidson
_______________________________________________
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.