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

NSCell's mouse tracking method never called


  • Subject: NSCell's mouse tracking method never called
  • From: Martin Cote <email@hidden>
  • Date: Wed, 9 Dec 2009 23:50:49 -0500

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.

Here's more details about the application:
 - I use tracking rects (using NSView's
addTrackingRect:owner:userData:assumeInside: method).  I'm not using
NSTrackingArea because I want this thing to work on pre-Leopard
machines.
 - The mouseEntered:/mouseExited: methods are called properly for the
tracking rects.
 - My NSCell's are copied for tracking (inspired by the PhotoSearch
sample project).  In fact, the whole application resemble the
PhotoSearch project, the main difference being that I use tracking
rects instead of tracking areas.

I'm really perplexed by this.  Any insight would be useful.

Thanks,
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

  • Follow-Ups:
    • Re: NSCell's mouse tracking method never called
      • From: Martin Cote <email@hidden>
    • Re: NSCell's mouse tracking method never called
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: [iPhone] Is there no return or dismiss key if my UITextField.keyboardType = UIKeyboardTypeNumberPad
  • Next by Date: Re: Leopard for development / testing.
  • Previous by thread: Re: [iPhone] Is there no return or dismiss key if my UITextField.keyboardType = UIKeyboardTypeNumberPad
  • Next by thread: Re: NSCell's mouse tracking method never called
  • Index(es):
    • Date
    • Thread