Small factoring

slava 2006-05-29 00:28:26 +00:00
parent c35a4b63b9
commit fa48c9f1f5
3 changed files with 5 additions and 3 deletions

View File

@ -50,6 +50,9 @@ threads ;
: finish-launching ( -- ) NSApp [finishLaunching] ;
: install-delegate ( receiver delegate -- )
[alloc] [init] [setDelegate:] ;
IN: errors
: objc-error. ( error -- )

View File

@ -22,8 +22,7 @@ objc-NSObject objc-NSWindow sequences ;
} { } define-objc-class
: install-app-delegate ( -- )
NSApp
FactorApplicationDelegate [alloc] [init] [setDelegate:] ;
NSApp FactorApplicationDelegate install-delegate ;
: init-cocoa-ui ( -- )
reset-callbacks

View File

@ -78,4 +78,4 @@ sequences ;
} { } define-objc-class
: install-window-delegate ( window -- )
FactorWindowDelegate [alloc] [init] [setDelegate:] ;
FactorWindowDelegate install-delegate ;