nstextattachment

Why is highlight:withFrame:inView: in an NSTextAttachmentCell subclass never called?

Hi, I am subclassing NSTextAttachmentCell and it works very good so far. The problem is to highlight the cell in a different color when the cell is selected or highlighted. The documentation of NSTextAttachmentCell points to the method highlight:withFrame:inView:. But this method is never called. Any idea? As a workaround I'm overrid...

Inserting image into NSViews pageFooter

Hello all, I've been trying to insert an image into the page footer of a custom NSView, so that when I print it, it will display text and an image in the footer. Here is the code that I am using: - (NSAttributedString *)pageFooter { NSString *imgName = @"Logo.tif"; ...

Dragging attachments out of NSTextView

Hi all, I am working on mac mail like feature- 1. dragging a file on body of message being composed and showing it as icon, over it. 2. dropping the icon of file from message body back to desktop or to any folder, so that it gets downloaded in it. I am able to implement the first point using NSTextView and calling method: -(void)setImp...