• 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: Disabling Display of JPG and PDF Files in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disabling Display of JPG and PDF Files in NSTextView


  • Subject: Re: Disabling Display of JPG and PDF Files in NSTextView
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 14 Sep 2005 08:51:03 -0700


On Sep 13, 2005, at 2:24 PM, Kirt Cathey wrote:

NSTextView automatically displays JPG and PDF as images, instead of icons, and while many people would be thrilled with this feature, I don't want it. A posting from a while back fostered in getting the code this far (this is raw without any checks or releases):


You should be able to do this by just letting NSTextView handle attachments normally, but going through and locating any that you don't want displayed as images, creating a new cell for each of those, and calling setAttachmentCell: on the attachment. You don't say how you are storing your text, but the attachment cell should have no effect on the way the text is stored; that's all controlled by the attachment. Does storing and loading of attachments work if you don't try to prevent image display? If so, see what the difference is in the stored files.


Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Disabling Display of JPG and PDF Files in NSTextView
      • From: "Kirt Cathey" <email@hidden>
    • Re: Disabling Display of JPG and PDF Files in NSTextView
      • From: "Kirt Cathey" <email@hidden>
References: 
 >Disabling Display of JPG and PDF Files in NSTextView (From: "Kirt Cathey" <email@hidden>)

  • Prev by Date: RE: Cocoa Controls
  • Next by Date: Re: Cocoa for small applications
  • Previous by thread: Disabling Display of JPG and PDF Files in NSTextView
  • Next by thread: Re: Disabling Display of JPG and PDF Files in NSTextView
  • Index(es):
    • Date
    • Thread