File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
stdlib/public/SDK/Foundation Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1173,10 +1173,13 @@ internal func NS_Swift_NSUndoManager_registerUndoWithTargetHandler(
1173
1173
_ handler: @convention ( block) ( AnyObject ) -> Void )
1174
1174
1175
1175
extension Undo Manager {
1176
+ @available ( * , unavailable, renamed: " registerUndo(withTarget:handler:) " )
1177
+ public func registerUndoWithTarget< TargetType : AnyObject > ( _ target: TargetType , handler: ( TargetType ) -> Void ) {
1178
+ fatalError ( " This API has been renamed " )
1179
+ }
1180
+
1176
1181
@available ( OSX 10 . 11 , iOS 9 . 0 , * )
1177
- public func registerUndoWithTarget< TargetType : AnyObject > (
1178
- _ target: TargetType , handler: ( TargetType ) -> Void
1179
- ) {
1182
+ public func registerUndo< TargetType : AnyObject > ( withTarget target: TargetType , handler: ( TargetType ) -> Void ) {
1180
1183
// The generic blocks use a different ABI, so we need to wrap the provided
1181
1184
// handler in something ObjC compatible.
1182
1185
let objcCompatibleHandler : ( AnyObject ) -> Void = { internalTarget in
You can’t perform that action at this time.
0 commit comments