Re: KUNCUserNotificationDisplayFromBundle callback not being called
Benedict - Apple apparently knows about this problem. It is due to a missing return statement in convert_port_to_UNDReply and has been entered in Apple's bug tracker as bug # 3358292. I don't believe this will be fixed in Panther so you might want to spawn a separate thread and just use KUNCUserNotificationDisplayAlert instead. (I know it doesn't offer all the functionality, but it works.) Tim Standing SoftRAID, LLC Message: 1 To: darwin-kernel@lists.apple.com From: Benedict Slaney <slaney@ihug.co.nz> Subject: KUNCUserNotificationDisplayFromBundle callback not being called Date: Mon, 4 Aug 2003 04:55:22 +1200 In my kext, KUNCUserNotificationDisplayFromBundle is not calling the function I provide a pointer to when the user clicks a button on the dialog it displays. here is the relevant part of the source in my kext: //globals KUNCUserNotificationCallBack dialogCallBack_p; void * dialogCallBack(int contextKey,int responseFlags,void *xmlData); //end globals //start relevant part of function dialogCallBack_p=dialogCallBack; ret=KUNCUserNotificationDisplayFromBundle(KUNCGetNotificationID(), "/System/Library/Extensions/SampleFilterScheme.kext", "Messages", "dict", "Password Message", "", dialogCallBack_p, context); //end relevant part of function However, the callback function "dialogCallBack" is not getting called when the user clicks a button on the dialog (or at all). This stops me from getting my required values from the dialog. _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Timothy Standing