<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Is there a best way to request default values for common Cocoa and Cocoa Touch APIs?&nbsp;<div class="">Now that we're moving to Swift, the language supports defaults and omitted parameters</div><div class="">but the ObjC APIs do not (yet) supply them.&nbsp;</div><div class=""><br class=""><div class="">For example,&nbsp;<font face="Menlo" class="">dismissViewControllerAnimated(flag: true, completion: nil)</font><span style="font-family: Palatino-Roman;" class="">&nbsp;</span></div><div class=""><span style="font-family: Palatino-Roman;" class="">could become&nbsp;</span><font face="Menlo" class="">dismissAnimated()</font><span style="font-family: Palatino-Roman;" class=""> when default values are available for </span><font face="Menlo" class="">flag</font><span style="font-family: Palatino-Roman;" class=""> and </span><font face="Menlo" class="">completion</font><span style="font-family: Palatino-Roman;" class="">.</span></div><div class=""><span style="font-family: Palatino-Roman;" class="">There's a large-ish class of these boilerplate defaults and it would be nice if there were a way to</span></div><div class=""><span style="font-family: Palatino-Roman;" class="">be able to request them.</span></div><div class=""><span style="font-family: Palatino-Roman;" class=""><br class=""></span></div><div class=""><span style="font-family: Palatino-Roman;" class="">cc'ing in Daniel S whose idea this is.</span></div><div class=""><span style="font-family: Palatino-Roman;" class=""><br class=""></span></div><div class=""><span style="font-family: Palatino-Roman;" class="">Thanks, -- E</span></div></div></body></html>