Re: Event loop expiration date insight

2012-10-31 Thread Graham Cox
On 31/10/2012, at 5:56 PM, Greg Parker wrote: > If the date is in the past then the method returns immediately. If there is a > matching event in the queue then it will be returned. > > >> I've changed this to pass nil and my mouse dragging works as normal. > > This is generally not recommen

Re: Event loop expiration date insight

2012-10-30 Thread Greg Parker
On Oct 30, 2012, at 9:58 PM, Graham Cox wrote: > I'm wondering what is the usual correct thing to pass for the 'untilDate' > parameter. For a long time I've been using [NSDate distantFuture], but the > documentation of this method says that by passing nil it uses [NSDate > distantPast], which i

Re: Event loop expiration date insight

2012-10-30 Thread Vincent Habchi
> I'm handling some mouse dragging tasks modally by implementing my own modal > event loop using [NSApp nextEventMatchingMask:untilDate:inMode:dequeue:]. > > I'm wondering what is the usual correct thing to pass for the 'untilDate' > parameter. For a long time I've been using [NSDate distantFutu