• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: -[NSApplication requestUserAttention:] return value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: -[NSApplication requestUserAttention:] return value?
      • From: mmalc crawford <email@hidden>
References: 
 >-[NSApplication requestUserAttention:] return value? (From: Jim Correia <email@hidden>)
 >Re: -[NSApplication requestUserAttention:] return value? (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: -[NSApplication requestUserAttention:] return value?
  • Next by Date: Re: Cocoa Python broken in Leopard??
  • Previous by thread: Re: -[NSApplication requestUserAttention:] return value?
  • Next by thread: Re: -[NSApplication requestUserAttention:] return value?
  • Index(es):
    • Date
    • Thread