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-cocoa NSFileTypeForHFSTypeCode (_fun _OSType -> _id))
(define (get-app-icon)
(tell (tell NSWorkspace sharedWorkspace)
iconForFile:
(tell (tell (tell NSWorkspace sharedWorkspace)
activeApplication)
objectForKey:
#:type _NSString
"NSApplicationPath")))
(tell (tell NSRunningApplication currentApplication) icon))
(define (make-icon label)
(let ([icon