• 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
sound CFURL in CFUserNotificationDisplayAlert question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sound CFURL in CFUserNotificationDisplayAlert question


  • Subject: sound CFURL in CFUserNotificationDisplayAlert question
  • From: Charles Bennett <email@hidden>
  • Date: Sat, 18 May 2002 22:20:31 -0400

Hi all, I'm playing around with CFUserNotificationDisplayAlert
and noticed that it should allow me to pass a sound and icon CFURL
into the call.

I create the URL with
CFURLRef soundURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault, CFSTR("/System/Library/Sounds/Basso.aiff"), kCFURLPOSIXPathStyle, FALSE);

and then run the alert with

CFUserNotificationDisplayAlert(0.0, kCFUserNotificationStopAlertLevel,
NULL,
soundURL,
NULL,
CFSTR("ALERT"),
CFSTR("Alert Message")
CFSTR("OK"),
NULL,
NULL,
&response);

The alert box comes up as expected but the sound doesn't play.
Trying to use an icon URL doesn't work either as a parameter doesn't
seem to work either (but that's been reported before)

I'm not seeing any errors, and the soundURL is not NULL.
I looked at the Darwin source to CFUserNotificationDisplayAlert and all it does is add the
CFURL into the dictionary.

A check of mamasam turned up a couple of comments about icon URL's not working
but there was no mention of sound and the comments were about year old.

Before I file a duplicate bug report..

Does anyone know of these things are still broken or should
I look deeper into my code? :-)

Also the display alert seems to always have an (informational?) icon. Blue circle
with an 'i' in it.. Shouldn't it be an alert triangle with "!"?

Thanks,

Chuck
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: sound CFURL in CFUserNotificationDisplayAlert question
      • From: Douglas Davidson <email@hidden>
References: 
 >Going around "display:" (From: David Newberry <email@hidden>)

  • Prev by Date: Re: Dock Magnification Effect
  • Next by Date: rotated NSAffineTransforms and clipping
  • Previous by thread: Going around "display:"
  • Next by thread: Re: sound CFURL in CFUserNotificationDisplayAlert question
  • Index(es):
    • Date
    • Thread