cocoa: one more 10.6-only method

This commit is contained in:
Matthew Flatt 2010-11-20 15:45:28 -07:00
parent bf9b913f33
commit c94df207a4

View File

@ -66,9 +66,10 @@
isDirectory: #:type _BOOL #t))
(tellv ns setDirectory: #:type _NSString dir))))
(when filename
(tellv ns setNameFieldStringValue: #:type _NSString (path->string
(file-name-from-path filename))))
(when (version-10.6-or-later?)
(tellv ns setNameFieldStringValue: #:type _NSString (path->string
(file-name-from-path filename)))))
(when (memq 'enter-packages style)
(tellv ns setTreatsFilePackagesAsDirectories: #:type _BOOL #t))