• 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
Fwd: CFUserNotificationDisplayAlert return value error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: CFUserNotificationDisplayAlert return value error?


  • Subject: Fwd: CFUserNotificationDisplayAlert return value error?
  • From: "Peter Hull" <email@hidden>
  • Date: Tue, 18 Apr 2006 21:16:41 +0100

It seems like the implementation of  CFUserNotificationDisplayAlert
doesn't match its documentation.

In http://tuvix.apple.com/documentation/CoreFoundation/Reference/CFUserNotificationRef/index.html?http://tuvix.apple.com/documentation/CoreFoundation/Reference/CFUserNotificationRef/Reference/reference.html
it says that the return value is "0 if the cancel was successful; a
non-0 value otherwise" and the response codes are:
enum {
    kCFUserNotificationDefaultResponse          = 0,
    kCFUserNotificationAlternateResponse        = 1,
    kCFUserNotificationOtherResponse            = 2,
    kCFUserNotificationCancelResponse           = 3
};
(and these match the values in my system headers)

What seems to happen is that the return value is 0 if the dialog
didn't time out, non-zero otherwise, and the return values are
default = 3
other = 2
alternate = 1

I found this whilst trying to implement an app in the OSX port of wxWidgets.

Can you confirm what is the correct behaviour? I am using OS X 10.2.8;
has the definition of this function changed? I feel sure I have made a
mistake somewhere - please help!

Yours

Peter
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CFUserNotificationDisplayAlert return value error?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Interface Builder Date Localization
  • Next by Date: Re: Cocoa Books
  • Previous by thread: Changing NSMatrix selection behavior without breaking bindings?
  • Next by thread: Re: CFUserNotificationDisplayAlert return value error?
  • Index(es):
    • Date
    • Thread