Swift API for NSNotification.addObserverForName() should have default nil queue value

Originator:andrew
Number:rdar://20896006 Date Originated:11-May-2015 01:21 PM
Status:Open Resolved:
Product:iOS SDK Product Version:Xcode 6.3 (6D570)
Classification:UI/Usability Reproducible:Always
 
When calling NSNotification.addObserverForName(object:queue:usingBlock:), it’s possible to pass nil as the queue object and have the notification run synchronously on the posting thread.

If the queue parameter had a default value of nil, it would save having to explicitly specify a nil queue value, which is probably how most uses of the API are structured.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!