• 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
NSTextFieldCell and -stopTracking::
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Getting Mouse Up in NSTextFieldCell (was NSTextFieldCell and stopTracking)
      • From: Eric Jutras <email@hidden>
  • Prev by Date: Re: NSURLDownload notifies on wrong thread?
  • Next by Date: Re: Open new document in first (empty) window
  • Previous by thread: Re: nodesForXPath does not seem to work in Address Book Plug-Ins
  • Next by thread: Getting Mouse Up in NSTextFieldCell (was NSTextFieldCell and stopTracking)
  • Index(es):
    • Date
    • Thread