• 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: NSCell's mouse tracking method never called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCell's mouse tracking method never called


  • Subject: Re: NSCell's mouse tracking method never called
  • From: Martin Cote <email@hidden>
  • Date: Thu, 10 Dec 2009 23:09:21 -0500

On Wed, Dec 9, 2009 at 11:50 PM, Martin Cote <email@hidden> wrote:
> Hello,
>
> I'm trying to track the mouse in my custom NSCell subclass, which is
> used to display the content of a NSTableView.  For that matter, I
> override the following method:
>
> - (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame
> ofView:(NSView *)controlView untilMouseUp:(BOOL)flag;
>
> The problem is that this method is never called for some reason that eludes me.

I found what the problem was.  The hitTestForEvent:inRect:ofView:
method had to be overridden to return NSCellHitTrackableArea.

Problem solved.

Martin Cote
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSCell's mouse tracking method never called (From: Martin Cote <email@hidden>)

  • Prev by Date: Re: Sending action from Switch type NSButton?
  • Next by Date: Binding an Array of Dictionaries
  • Previous by thread: Re: NSCell's mouse tracking method never called
  • Next by thread: Problem with Set/Get volume of input device with single channel
  • Index(es):
    • Date
    • Thread