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 
> distantPast], which implies perhaps that this is a more usual default. In 
> thinking about this I realise I don't really understand what this parameter 
> is doing, especially when 'distantPast' is specified - does that mean do not 
> wait at all for any events and only return one if it's already queued?

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 recommended. Using nil instead of -distantFuture may use 
more CPU and power while the drag is in progress.


-- 
Greg Parker     gpar...@apple.com     Runtime Wrangler



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to