FROM : Jim Correia
DATE : Wed Nov 07 17:58:25 2007
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
DATE : Wed Nov 07 17:58:25 2007
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
| Related mails | Author | Date |
|---|---|---|
| Jim Correia | Nov 7, 17:39 | |
| mmalc crawford | Nov 7, 17:54 | |
| Jim Correia | Nov 7, 17:58 | |
| mmalc crawford | Nov 7, 18:05 |






Cocoa mail archive

