cocoa: fix message% 'app icon
This commit is contained in:
parent
3751452530
commit
d518084f88
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user