Re: tracking area problems on 10.4.11

2008-07-04 Thread John C. Randolph
On Jul 2, 2008, at 11:21 AM, Wesley Smith wrote: I did that. my window and content view both have those methods defined. I've tried setting both of them to owner to no avail :( From QA #1355: Technical QA QA1355 Why aren't my tracking rects working? Q: I'm trying to implement tracking

Re: tracking area problems on 10.4.11

2008-07-02 Thread Tony Becker
As a general rule, the tracking rects are smaller then the whole window, and technically need the mouse to enter/exit, which I don't see happening, if they are the same size. Try something like: [[mWindow contentView] addTrackingRect:NSInsetRect([mWindow frame], [mWindow

Re: tracking area problems on 10.4.11

2008-07-02 Thread Tony Becker
Change the owner: parameter from [mWindow contentView] to self, or whatever class instance has the enter/exit methods. On Jul 2, 2008, at 2:10 PM, Wesley Smith wrote: Hi Tony, Thanks for the response. I'm still not getting the trigger. Based on your advice, I changed the code to: NSRect f

Re: tracking area problems on 10.4.11

2008-07-02 Thread Michael Ash
On Tue, Jul 1, 2008 at 5:29 PM, Wesley Smith [EMAIL PROTECTED] wrote: Hi, I'm trying to get the following events to trigger: - (void)mouseEntered:(NSEvent *)theEvent - (void)mouseExited:(NSEvent *)theEvent I'm using this call to get it to work: [[mWindow contentView]