• 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
Custom tracking in a NSTextFieldCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom tracking in a NSTextFieldCell


  • Subject: Custom tracking in a NSTextFieldCell
  • From: Eric Gorr <email@hidden>
  • Date: Wed, 7 Jan 2009 18:26:06 -0500

I need to do some custom mouse tracking in a NSTextFieldCell.

Based on the documentation, when a cell is clicked,
- (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView

should be called.

However, neither this method nor

- (void)stopTracking:(NSPoint)lastPoint at:(NSPoint)stopPoint inView: (NSView *)controlView mouseIsUp:(BOOL)flag

- (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView: (NSView *)controlViewuntilMouseUp:(BOOL)untilMouseUp

are ever invoked. I cannot seem to locate any other methods that would tell me where the cell was clicked or when the mouse button was let up and where.


- (NSUInteger)hitTestForEvent:(NSEvent *)event inRect: (NSRect)cellFrame ofView:(NSView *)controlView



is being called and I may be able to put all of my logic in here by looking at the event information, etc., but I would like to be able to use startTrackingAt & stopTracking if that were possible.


Is there something unique about a NSTextFieldCell that prevents these methods from being invoked?





_______________________________________________

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: Custom tracking in a NSTextFieldCell
      • From: Eric Gorr <email@hidden>
  • Prev by Date: Re: Cocoa Support for Mail
  • Next by Date: Re: Convert GWorldPtr into a NSImage
  • Previous by thread: [MEET] CocoaHeads-NYC meeting Thu 01/08
  • Next by thread: Re: Custom tracking in a NSTextFieldCell
  • Index(es):
    • Date
    • Thread