NSTextAttachment behavior
NSTextAttachment behavior
- Subject: NSTextAttachment behavior
- From: Gwynne <email@hidden>
- Date: Fri, 14 Jan 2005 12:53:18 -0500
The designated initializer for NSTextAttachment says this:
Initializes a newly allocated NSTextAttachment to contain aWrapper and
use an NSTextAttachmentCell as its attachment cell. If aWrapper
contains an image file that the receiver can interpret as an NSImage
object, sets the attachment cell’s image to the NSImage rather than to
the icon of aWrapper.
This is _almost_ what I want. But I want it to always use the file's
icon, even if the file is an image. Is there a simple way to do this
without sitting here reimplementing the entire NSTextAttachmentCell
machinery?
I apologize if this is a FAQ, but I couldn't find any information about
it with an archive/Google search.
-- Gwynne, key to the Code
Email: email@hidden
Website: http://musicimage.plasticchicken.com/
"This whole world is an asylum for the incurable."
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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