• 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: A few NSTextView questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A few NSTextView questions...


  • Subject: Re: A few NSTextView questions...
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 21 May 2004 11:38:03 -0700

On May 21, 2004, at 10:33 AM, Moray Taylor wrote:

1) I am using NSTextAttachments to display icons of files in a TextView, it works great, but if I do one for a .jpg, or .pdf, it shows the actual image, very clever, but I'd like to turn this off, how do I that?

NSTextAttachment will automatically create an NSTextAttachmentCell for you if you do not supply one; in so doing, it will use its own notion of the appropriate cell type and contents to display for the given file. If you want something else, you can set an appropriate NSTextAttachmentCell on your NSTextAttachment. An appropriate icon can be obtained from NSWorkspace via iconForFileType: or iconForFile:.

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: 
 >A few NSTextView questions... (From: Moray Taylor <email@hidden>)

  • Prev by Date: Re: Cocoa Bindings - many people using them?
  • Next by Date: Re: Avoiding == and = mixup in if statements
  • Previous by thread: A few NSTextView questions...
  • Next by thread: 'Search field' class yet?
  • Index(es):
    • Date
    • Thread