Good day: I have a class which is subclass of NSTextView, and I use a
- (void)updateTrackingAreas{ NSTrackingArea *trackingArea = [[NSTrackingArea alloc] initWithRect:usedRect options:NSTrackingMouseEnteredAndExited| NSTrackingActiveInActiveApp| NSTrackingMouseMoved| NSTrackingAssumeInside owner:self userInfo:userinfo]; [self addTrackingArea:trackingArea]; } to add the tracking areas with "usedRect" which I want to track but when the app running, I found that as long as I move the cursor into the textView ,that means the rect of [self bounds],it will triger the -(void)mouseEntered immediatly. so the problem is the textview has a tracking area of [self bounds],but not my "usedRect". dose the NSTextView has a trackingArea of [self bounds]? and how I can add my custom trackingarea? Thanks & Regards, Stan _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com