Replace dynamic_objc_cast<> with dynamic_ns_cast<>. dynamic_objc_cast<> was originally added for Bug 139893 in r177677, then moved to WTF for Bug 139915 in r177697. dynamic_ns_cast<> was added for Bug 230227 in r282703 as part of <wtf/cocoa/TypeCastsNS.h>. Since TypeCastsNS.h has an rvalue overload of dynamic_ns_cast<> and contains checked_ns_cast<> and has tests and is two characters less to type, let's replace dynamic_objc_cast<> with dynamic_ns_cast<>. (Sorry Anders.)
NOTE: There is internal code that uses dynamic_objc_cast<>, so that has to be updated before this lands.
<rdar://problem/83287321>
Created attachment 438619 [details] Patch v1
Comment on attachment 438619 [details] Patch v1 In Bug 230406, Darin writes: > Did you see my comment about dynamic_objc_cast? I think I prefer that name to dynamic_ns_cast. So I'll either flip this, or close it and file a new bug.
(In reply to David Kilzer (:ddkilzer) from comment #4) > Comment on attachment 438619 [details] > Patch v1 > > In Bug 230406, Darin writes: > > > Did you see my comment about dynamic_objc_cast? I think I prefer that name to dynamic_ns_cast. > > So I'll either flip this, or close it and file a new bug. Moving this to RESOLVED/WONTFIX.
(In reply to David Kilzer (:ddkilzer) from comment #4) > Comment on attachment 438619 [details] > Patch v1 > > In Bug 230406, Darin writes: > > > Did you see my comment about dynamic_objc_cast? I think I prefer that name to dynamic_ns_cast. > > So I'll either flip this, or close it and file a new bug. Bug 230508: Rename {checked,dynamic}_ns_cast<> to {checked,dynamic}_objc_cast<>