• 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: [RESOLVED] trouble getting mouseEntered/mouseExited to fire
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RESOLVED] trouble getting mouseEntered/mouseExited to fire


  • Subject: Re: [RESOLVED] trouble getting mouseEntered/mouseExited to fire
  • From: Carlos Salinas <email@hidden>
  • Date: Sun, 24 Jul 2005 13:08:38 -0700

The view should override -viewDidMoveToWindow and add its tracking rectangle in that method. Doing so will insure that view properly establishes its tracking rectangle whenever added to a window.

'los

On Jul 23, 2005, at 8:37 PM, Chase wrote:

the problem was that, apparently, the view must be first placed in a window, and THEN you can add the tracking rect.

so, instead of calling addTrackingRect:owner:userData:assumeInside: from withing the content view sublass' initWithFrame: method, i call it from the window init method directly **after** placing it in the window.


- chase
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >trouble getting mouseEntered/mouseExited to fire (From: Chase <email@hidden>)
 >Re: [RESOLVED] trouble getting mouseEntered/mouseExited to fire (From: Chase <email@hidden>)

  • Prev by Date: Change cursor when dragging in NSTableView?
  • Next by Date: Re: Problem with japanese systems
  • Previous by thread: Re: [RESOLVED] trouble getting mouseEntered/mouseExited to fire
  • Next by thread: Programatically created WebView crashes
  • Index(es):
    • Date
    • Thread