• 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: inserting graphics into NSString output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: inserting graphics into NSString output (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: NSSocketPortNameServer
  • Next by Date: copying immutable objects
  • Previous by thread: Re: inserting graphics into NSString output
  • Next by thread: Question about Cocoa scripting
  • Index(es):
    • Date
    • Thread