Skip navigation.
 
mlRe: CFUserNotificationDisplayNotice Timeout bug?
FROM : Douglas Davidson
DATE : Thu Aug 31 17:53:23 2006

On Aug 31, 2006, at 5:52 AM, Dale Gillard wrote:

> I'm experimenting with CFUserNotificationDisplayNotice function and 
> have found the timeout period is inaccurate. If I pass 1, 2, 3, 30 
> or 40 seconds into the function it takes about 20-30 seconds for 
> the dialog box to be displayed. Am I missing something obvious, or 
> is this a bug?
>
> CFUserNotificationDisplayNotice(1, 
> kCFUserNotificationNoteAlertLevel, NULL, NULL, NULL,CFSTR("My 
> App"), CFSTR("This is a test error message."), NULL);


There is a minimum granularity for the timeout.  Keep in mind that 
this involves IPC to another process, which may have to be launched, 
then become active, and display the dialog to the user, who will then 
have to respond to it.  You should be thinking in terms of minutes 
rather than seconds.  If you need finer control, you can use one of 
the asynchronous calls and cancel the notification yourself.


Douglas Davidson

Related mailsAuthorDate
mlCFUserNotificationDisplayNotice Timeout bug? Dale Gillard Aug 31, 14:52
mlRe: CFUserNotificationDisplayNotice Timeout bug? Daniel Jalkut Aug 31, 16:17
mlRe: CFUserNotificationDisplayNotice Timeout bug? Douglas Davidson Aug 31, 17:53
mlRe: CFUserNotificationDisplayNotice Timeout bug? Daniel Jalkut Aug 31, 19:42