Re: -[NSApplication requestUserAttention:] return value?
Re: -[NSApplication requestUserAttention:] return value?
- Subject: Re: -[NSApplication requestUserAttention:] return value?
- From: Jim Correia <email@hidden>
- Date: Wed, 7 Nov 2007 11:58:25 -0500
On Nov 7, 2007, at 11:54 AM, mmalc crawford wrote:
On Nov 7, 2007, at 8:39 AM, Jim Correia wrote:
The documentation for -[NSApplication requestUserAttention:] says:
The value returned by this method can be used to manually cancel
a request by passing it as the parameter to
cancelUserAttentionRequest:.
But it doesn't document the range of values returned. Empirically,
it appears to be [0..N].
The value increments each time you ask for a request.
So assuming I make less than 2 billion requests per application
launch :-), -1 is a safe "uninitialized" value?
Jim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden