cocoa: fix message% 'app icon

This commit is contained in:
Matthew Flatt 2010-12-16 09:48:24 -07:00
parent 3751452530
commit d518084f88

View File

@ -16,20 +16,14 @@
;; ---------------------------------------- ;; ----------------------------------------
(import-class NSTextField NSImageView NSWorkspace) (import-class NSTextField NSImageView NSWorkspace NSRunningApplication)
(define _OSType _uint32) (define _OSType _uint32)
(define-cocoa NSFileTypeForHFSTypeCode (_fun _OSType -> _id)) (define-cocoa NSFileTypeForHFSTypeCode (_fun _OSType -> _id))
(define (get-app-icon) (define (get-app-icon)
(tell (tell NSWorkspace sharedWorkspace) (tell (tell NSRunningApplication currentApplication) icon))
iconForFile:
(tell (tell (tell NSWorkspace sharedWorkspace)
activeApplication)
objectForKey:
#:type _NSString
"NSApplicationPath")))
(define (make-icon label) (define (make-icon label)
(let ([icon (let ([icon