Fwd: CFUserNotificationDisplayAlert return value error?
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