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 distantFuture],
On Oct 30, 2012, at 9:58 PM, Graham Cox graham@bigpond.com 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
On 31/10/2012, at 5:56 PM, Greg Parker gpar...@apple.com 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
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 distantFuture], but