• 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: 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


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>)
 >Re: Changing the sender of an <NSTextAttachmentCell> (From: "The Karl Adam" <email@hidden>)

  • Prev by Date: Re: Changing the sender of an <NSTextAttachmentCell>
  • Next by Date: Re: NSImages are killing my WindowServer
  • Previous by thread: Re: Changing the sender of an <NSTextAttachmentCell>
  • Next by thread: CoreData and ManagedObjects
  • Index(es):
    • Date
    • Thread