@@ -2,7 +2,7 @@ extern crate cocoa;
2
2
extern crate core_graphics;
3
3
4
4
#[ macro_use]
5
- extern crate objc ;
5
+ extern crate objc2 ;
6
6
7
7
use cocoa:: base:: { selector, nil, NO , id} ;
8
8
use cocoa:: foundation:: { NSRect , NSPoint , NSSize , NSAutoreleasePool , NSProcessInfo ,
@@ -14,8 +14,8 @@ use cocoa::appkit::{NSApp, NSApplication, NSApplicationActivationPolicyRegular,
14
14
15
15
use core_graphics:: display:: CGDisplay ;
16
16
17
- use objc :: runtime:: { Object , Sel } ;
18
- use objc :: declare:: ClassDecl ;
17
+ use objc2 :: runtime:: { Object , Sel } ;
18
+ use objc2 :: declare:: ClassDecl ;
19
19
20
20
fn main ( ) {
21
21
unsafe {
@@ -65,11 +65,11 @@ fn main() {
65
65
}
66
66
67
67
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 ( _ , _ , _ , _ ) -> _ ) ;
69
69
decl. add_method ( sel ! ( windowWillEnterFullScreen: ) ,
70
- window_entering_fullscreen as extern fn ( & Object , Sel , id ) ) ;
70
+ window_entering_fullscreen as extern fn ( _ , _ , _ ) ) ;
71
71
decl. add_method ( sel ! ( windowDidEnterFullScreen: ) ,
72
- window_entering_fullscreen as extern fn ( & Object , Sel , id ) ) ;
72
+ window_entering_fullscreen as extern fn ( _ , _ , _ ) ) ;
73
73
74
74
let delegate_class = decl. register ( ) ;
75
75
let delegate_object = msg_send ! [ delegate_class, new] ;
0 commit comments