• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing the sender of an <NSTextAttachmentCell>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Changing the sender of an <NSTextAttachmentCell>
      • From: Douglas Davidson <email@hidden>
References: 
 >Changing the sender of an <NSTextAttachmentCell> (From: "The Karl Adam" <email@hidden>)
 >Re: Changing the sender of an <NSTextAttachmentCell> (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: value transformer for structs?
  • Next by Date: Re: Changing the sender of an <NSTextAttachmentCell>
  • Previous by thread: Re: Changing the sender of an <NSTextAttachmentCell>
  • Next by thread: Re: Changing the sender of an <NSTextAttachmentCell>
  • Index(es):
    • Date
    • Thread