@@ -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:: appkit:: {
88 NSApp , NSApplication , NSApplicationActivateIgnoringOtherApps ,
@@ -17,8 +17,8 @@ use cocoa::foundation::{
1717
1818use core_graphics:: display:: CGDisplay ;
1919
20- use objc :: declare:: ClassDecl ;
21- use objc :: runtime:: { Object , Sel } ;
20+ use objc2 :: declare:: ClassDecl ;
21+ use objc2 :: runtime:: { Object , Sel } ;
2222
2323fn main ( ) {
2424 unsafe {
@@ -75,16 +75,15 @@ fn main() {
7575
7676 decl. add_method (
7777 sel ! ( window: willUseFullScreenPresentationOptions: ) ,
78- will_use_fillscreen_presentation_options
79- as extern "C" fn ( & Object , Sel , id , NSUInteger ) -> NSUInteger ,
78+ will_use_fillscreen_presentation_options as extern "C" fn ( _, _, _, _) -> _ ,
8079 ) ;
8180 decl. add_method (
8281 sel ! ( windowWillEnterFullScreen: ) ,
83- window_entering_fullscreen as extern "C" fn ( & Object , Sel , id ) ,
82+ window_entering_fullscreen as extern "C" fn ( _ , _ , _ ) ,
8483 ) ;
8584 decl. add_method (
8685 sel ! ( windowDidEnterFullScreen: ) ,
87- window_entering_fullscreen as extern "C" fn ( & Object , Sel , id ) ,
86+ window_entering_fullscreen as extern "C" fn ( _ , _ , _ ) ,
8887 ) ;
8988
9089 let delegate_class = decl. register ( ) ;
0 commit comments