cocoa: one more 10.6-only method

original commit: c94df207a4678224b30f9746f533ca84a739fe45
This commit is contained in:
Matthew Flatt 2010-11-20 15:45:28 -07:00
parent 46fac3892b
commit 9fa0057c3b

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))