Re: Changing the sender of an <NSTextAttachmentCell>
Re: Changing the sender of an <NSTextAttachmentCell>
- Subject: Re: Changing the sender of an <NSTextAttachmentCell>
- From: "The Karl Adam" <email@hidden>
- Date: Thu, 23 Mar 2006 14:52:01 -0500
I already have, this is an NSPopUpButtonCell subclass made to
implement the NSTextAttachmentCell protocol. The
-trackMouse:inRect:ofView:atCharacterIndex:untilMouseUp: only gets
called once at the beginning during mouseDown, and
-trackMouse:inRect:ofView:untilMouseUp: is called after all the user
menu interaction is completed, the popUp is released and the action
performed by the menu rather than the cell itself. Do I need to take
control of all the mouse handling in order to change the action's
sender?
-Karl
On 3/23/06, Douglas Davidson <email@hidden> wrote:
>
>
> On Mar 23, 2006, at 11:16 AM, The Karl Adam wrote:
>
>
> Okay, I have an <NSTextAttachmentCell> and I want to change it's
>
> sender on performAction::: The problem here is that since it's
>
> embedded in the text view it has no controlView and tries to send that
>
> as it's sender which is nil. I need to know which cell triggered the
>
> action. Is there any way to do this?
>
>
> Implement one of the NSTextAttachmentCell trackMouse... methods and you
> should be able to handle mouse events on your attachments as you wish.
>
> 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