NSTextFieldCell and -stopTracking::
NSTextFieldCell and -stopTracking::
- Subject: NSTextFieldCell and -stopTracking::
- From: Eric Jutras <email@hidden>
- Date: Wed, 06 Jun 2007 15:18:03 -0400
Hey
I'm trying to interecept mouse clicks on a NSTextFieldCell sub and
I'm ONLY getting
- (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame
ofView:(NSView *)controlView untilMouseUp:(BOOL)untilMouseUp
and not
- (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView
and
- (void)stopTracking:(NSPoint)lastPoint at:(NSPoint)stopPoint inView:
(NSView *)controlView mouseIsUp:(BOOL)flag
Like the doc says I should:
This method first invokes startTrackingAt:inView:. If that method
returns YES, then as mouse-dragged events are intercepted,
continueTracking:at:inView: is invoked until either the method
returns NO or the mouse is released. Finally,
stopTracking:at:inView:mouseIsUp: is invoked if the mouse is
released. If untilMouseUp is YES, it’s invoked when the mouse
button goes up while the cursor is anywhere. If untilMouseUp is NO,
it’s invoked when the mouse button goes up while the cursor is
within cellFrame. (If cellFrame is NULL, then the bounds are
considered infinitely large.) You usually override one or more of
these methods to respond to specific mouse events.
I must be missing something here
Thanks!
-Eric_______________________________________________
Cocoa-dev mailing list (email@hidden)
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