• 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: NSTextAttachment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextAttachment


  • Subject: Re: NSTextAttachment
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 16 Jul 2012 14:51:42 -0700

On Jul 16, 2012, at 2:15 PM, Alexander Reichstadt <email@hidden> wrote:

> Is there any way to have an NSTextView to hold text and custom data-widgets that are unrelated to filewrappers? I don't want NSTextAttachmentCell I think, because without a file it doesn't work

I have used NSTextAttachmentCell for things that are not files. Note the comment in NSTextAttachment.h that says "An NSTextAttachment *usually* has a fileWrapper" (emphasis mine). It doesn't *have* to have one.

Unfortunately it's been enough years that I don't remember the details. It may be that you can initialize an NSTextAttachment with a nil fileWrapper, or to set the fileWrapper property to nil after initialization. If not, you may just be able to pass in an arbitrary path to some file, and then the NSTextAttachmentCell methods such that they don't care what the file is.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextAttachment
      • From: Alexander Reichstadt <email@hidden>
References: 
 >NSTextAttachment (From: Alexander Reichstadt <email@hidden>)

  • Prev by Date: Re: Core Data Multiuser
  • Next by Date: How to determine an NSSlider's thumb position onscreen?
  • Previous by thread: NSTextAttachment
  • Next by thread: Re: NSTextAttachment
  • Index(es):
    • Date
    • Thread