• 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
NSActionCell, mouse tracking and NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSActionCell, mouse tracking and NSTableView


  • Subject: NSActionCell, mouse tracking and NSTableView
  • From: Mark Alldritt <email@hidden>
  • Date: Wed, 08 Dec 2004 10:44:28 -0800

Hi All,

I'm trying to create a NSActionCell subclass which implements roll-over
effects for use within NSTableView and NSOutlineView.  I've tried
implementing the following methods from NSCell, but they are not being
invoked:

- (void) mouseEntered:(NSEvent*) event
{
    NSLog(@"[BrowserValueCell mouseEntered:]");
}

- (void) mouseExited:(NSEvent*) event
{
    NSLog(@"[BrowserValueCell mouseExited:]");
}

- (BOOL) startTrackingAt:(NSPoint) startPoint inView:(NSView*) controlView
{
    NSLog(@"[BrowserValueCell startTrackingAt:...]");
    return YES;
}

- (BOOL) continueTracking:(NSPoint) lastPoint at:(NSPoint) currentPoint
inView:(NSView*) controlView
{
    NSLog(@"[BrowserValueCell continueTracking:...]");
    return YES;
}

- (void) stopTracking:(NSPoint) lastPoint at:(NSPoint) stopPoint
inView:(NSView*) controlView mouseIsUp:(BOOL) flag
{
    NSLog(@"[BrowserValueCell stopTracking:...]");
}

How do I get these methoes to work (or otherwise get their functionality) in
my NSCell subclass?

Cheers
-Mark

---------------------------------------------------------------------
Mark Alldritt                         Late Night Software Ltd.
Phone: 250-380-1725                   333 Moss Street
FAX:   250-383-3204                   Victoria, B.C.
WEB:   http://www.latenightsw.com/    CANADA  V8V-4M9

 _______________________________________________
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: NSActionCell, mouse tracking and NSTableView
      • From: "John C. Randolph" <email@hidden>
    • Re: NSActionCell, mouse tracking and NSTableView
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Obj-C as a viable multi target language
  • Next by Date: Re: Confused about bindings and NSTableView
  • Previous by thread: Re: Obj-C as a viable multi target language
  • Next by thread: Re: NSActionCell, mouse tracking and NSTableView
  • Index(es):
    • Date
    • Thread