Re: Changing the sender of an <NSTextAttachmentCell>
Re: Changing the sender of an <NSTextAttachmentCell>
- Subject: Re: Changing the sender of an <NSTextAttachmentCell>
- From: Douglas Davidson <email@hidden>
- Date: Thu, 23 Mar 2006 12:00:48 -0800
On Mar 23, 2006, at 11:52 AM, The Karl Adam wrote:
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?
That would be one possibility. Possibly simpler would be to make a
note of which button and attachment the user is working with, and
have the recipient of the action interrogate that rather than looking
to the sender. Alternatively, if you have a view you want used as
the sender, you might be able to call setControlView: on your cell.
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