Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I guess this signature is wrong.
The static member DefaultQueue of NSNotificationQueue class returns it as an NSObject.
Surely I confirmed that it works as an proper instance of NSNotificationQueue like following code snippet;
var notification = NSNotification.FromName ("ANotificationWhichPostWhenIdle", null);
var que = new NSNotificationQueue (NSNotificationQueue.DefaultQueue.Handle);
que.EnqueueNotification (notification, NSPostingStyle.PostWhenIdle);
Or Is there any restriction or recommendation that it should not be used or somewhat.
Thank you for your help.
Yes, I tracked the original commit (3 years old) and it's a binding mistake. It should return a `NSNotificationQueue`.
I'll fix this for future releases, but you can safely cast it for `NSNotificationQueue` in existing applications.
Fixed in master 255ea661ae9cc20e918cda9829de0255b37ba947
I have checked issue on following builds:
Mac OS X 10.7.5
Xamarin.iOS: 126.96.36.199 (Trial Edition)
Xamarin Studio: 4.2.3 (build 60)
Release ID: 402030060
Git revision: 30c4afc300c2a39ec5300851357ce02e49dd217e
Build date: 2014-03-05 22:09:33+0000
Xamarin addins: f8a9589b57c2bfab2ccd73c880e7ad81e3ecf044
To verify this issue I have check the definition of static member "DefaultQueue" of "NSNotificationQueue" class in assembly browser and I observed that the static property "DefaultQueue" doesn't return "NSObject" now it's returning an object of "NSNotificationQueue" class
This issue is working fine. Hence, I am closing this issue.