• 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
Re: Tracking area pending install and disabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tracking area pending install and disabled


  • Subject: Re: Tracking area pending install and disabled
  • From: Corbin Dunn <email@hidden>
  • Date: Mon, 29 Sep 2008 12:16:18 -0700


On Sep 29, 2008, at 11:19 AM, Dale Miller wrote:

I create a NSTracking area with
		tkarea = [[NSTrackingArea alloc] initWithRect:usedrect
					options:NSTrackingMouseEnteredAndExited
						|NSTrackingActiveInActiveApp
					owner:self
					userInfo:nil];
		[self addTrackingArea:tkarea];	

	1) the owner is self - an instance of a subclass of NSTextView
	2) the "usedrect" has been intersected with [self bounds]

The "mouseEntered" and "mouseExited" methods are not called.
If I display the tracking area with NSLog after adding the trackingArea to the view, I get the following display:


2008-09-29 11:01:59.803 task[656:813] - trackingArea = NSTrackingArea 0x17a910: rect={{0, 0}, {566, 28}}, owner=0x853000 userData=(null)
NSTrackingMouseEnteredAndExited
NSTrackingActiveInActiveApp
pendingInstall notInstalled disabled


I believe that I had this problem before, and resolved it, but I seem to be running on half memory, and can't recall what the solution was. In fact, the code I'm using now is an almost literal copy of the code in the old project, which works properly. The code also seems to be consistent with code in the
"Cocoa Event Handling Guide" and previous discussions on this list.


Searching for NSTrackingArea and either "pendingInstall", "notInstalled" or "disabled" was not fruitful.

Any Suggestions?

Add your tracking areas in -updateTrackingAreas.

corbin
_______________________________________________

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: Tracking area pending install and disabled
      • From: Dale Miller <email@hidden>
References: 
 >Tracking area pending install and disabled (From: Dale Miller <email@hidden>)

  • Prev by Date: Tracking area pending install and disabled
  • Next by Date: [announce] SousChef 1.0
  • Previous by thread: Tracking area pending install and disabled
  • Next by thread: Re: Tracking area pending install and disabled
  • Index(es):
    • Date
    • Thread