@@ -2,7 +2,7 @@ extern crate cocoa;
22extern crate core_graphics;
33
44#[ macro_use]
5- extern crate objc ;
5+ extern crate objc2 ;
66
77use cocoa:: base:: { selector, nil, NO , id} ;
88use cocoa:: foundation:: { NSRect , NSPoint , NSSize , NSAutoreleasePool , NSProcessInfo ,
@@ -14,8 +14,8 @@ use cocoa::appkit::{NSApp, NSApplication, NSApplicationActivationPolicyRegular,
1414
1515use core_graphics:: display:: CGDisplay ;
1616
17- use objc :: runtime:: { Object , Sel } ;
18- use objc :: declare:: ClassDecl ;
17+ use objc2 :: runtime:: { Object , Sel } ;
18+ use objc2 :: declare:: ClassDecl ;
1919
2020fn main ( ) {
2121 unsafe {
@@ -65,11 +65,11 @@ fn main() {
6565 }
6666
6767 decl. add_method ( sel ! ( window: willUseFullScreenPresentationOptions: ) ,
68- will_use_fillscreen_presentation_options as extern fn ( & Object , Sel , id , NSUInteger ) -> NSUInteger ) ;
68+ will_use_fillscreen_presentation_options as extern fn ( _ , _ , _ , _ ) -> _ ) ;
6969 decl. add_method ( sel ! ( windowWillEnterFullScreen: ) ,
70- window_entering_fullscreen as extern fn ( & Object , Sel , id ) ) ;
70+ window_entering_fullscreen as extern fn ( _ , _ , _ ) ) ;
7171 decl. add_method ( sel ! ( windowDidEnterFullScreen: ) ,
72- window_entering_fullscreen as extern fn ( & Object , Sel , id ) ) ;
72+ window_entering_fullscreen as extern fn ( _ , _ , _ ) ) ;
7373
7474 let delegate_class = decl. register ( ) ;
7575 let delegate_object = msg_send ! [ delegate_class, new] ;
0 commit comments