Re: A few NSTextView questions...
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.