Getting Mouse Up in NSTextFieldCell (was NSTextFieldCell and stopTracking)
Getting Mouse Up in NSTextFieldCell (was NSTextFieldCell and stopTracking)
- Subject: Getting Mouse Up in NSTextFieldCell (was NSTextFieldCell and stopTracking)
- From: Eric Jutras <email@hidden>
- Date: Thu, 07 Jun 2007 00:29:55 -0400
Hi List,
OK, so let me rephrase this question as I think it needs more clarity.
How does one get mouse up event in NSTextFieldCell?
Thanks,
On 6 juin 07, at 15:18, Eric Jutras wrote:
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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