Re: NSScrollView and NSTrackingArea woes [SOLVED]

2015-07-19 Thread João Varela
First of all I would like to thank everybody that tried ho give me a hand. I really do appreciate it. I also want to write this email to let people know how I solved the problem, so that the readers of this list do not have to go through a week of frustration as I have. Well, it took so long bec

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread dangerwillrobinsondanger
Why not just observe bounds change notifications from the clipview? Then handle those with the update call. Sent from my iPhone > On Jul 17, 2015, at 10:58 AM, João Varela wrote: > >> On Friday, July 17, 2015, Ken Thomases wrote: >> >> On Jul 16, 2015, at 8:19 PM, João Varela > > wrote: >>>

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread Quincey Morris
On Jul 16, 2015, at 18:19 , João Varela wrote: > > The options I am using are the following: > > NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited | > NSTrackingMouseMoved| > NSTrackingActiveInActiveApp; Apart from the things Ken said, I’m struck by the above. So you’re

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread João Varela
On Friday, July 17, 2015, Ken Thomases wrote: > On Jul 16, 2015, at 8:19 PM, João Varela > wrote: > > > > I’m passing [self bounds]. And no, I am not using NSTrackingInVisibleRect > > Why aren't you using that? That seems like the most obvious way to get > correct behavior. The only reason you

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread Ken Thomases
On Jul 16, 2015, at 8:19 PM, João Varela wrote: > > I’m passing [self bounds]. And no, I am not using NSTrackingInVisibleRect Why aren't you using that? That seems like the most obvious way to get correct behavior. The only reason you wouldn't use it is if you were adding a tracking area tha

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread João Varela
> On 15 Jul 2015, at 18:28, Quincey Morris > wrote: > > On Jul 15, 2015, at 03:08 , João Varela > wrote: >> >> However, none of this happens when the user only scrolls (up or down) a >> little and does not reach the top or bottom of the document view. In this >

Re: NSScrollView and NSTrackingArea woes

2015-07-16 Thread João Varela
> On 15 Jul 2015, at 11:44, Muthulingam Ammaiappan > wrote: > > Hi J.Varela, > > > i too faced the same problem... and i found that "inertial scrolling" has > the reason for this misbehaviour. > so "disable the inertia scrolling" will solve this problem. > > just add the following line to

Re: NSScrollView and NSTrackingArea woes

2015-07-15 Thread Quincey Morris
On Jul 15, 2015, at 03:08 , João Varela wrote: > > However, none of this happens when the user only scrolls (up or down) a > little and does not reach the top or bottom of the document view. In this > case, not only the -updateTrackingAreas method of the subview is not called, > but also the c

Re: NSScrollView and NSTrackingArea woes

2015-07-15 Thread Muthulingam Ammaiappan
Hi J.Varela, i too faced the same problem... and i found that "inertial scrolling" has the reason for this misbehaviour. so "disable the inertia scrolling" will solve this problem. just add the following line to your application init method... * [[NSUserDefaults standardUserDefaults] setBool

NSScrollView and NSTrackingArea woes

2015-07-15 Thread João Varela
Hi, I am implementing two custom classes, one of them is the document view inside an NSScrollView and the other is a subview of the document view. I need to create two NSTrackingArea’s to display the appropriate cursor when the mouse hovers over specific areas of the subviews. As instructed by