Mercurial > projects > dstep
comparison dstep/foundation/NSHFSFileTypes.d @ 14:89f3c3ef1fd2
Added the Foundation framework
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 15:23:15 +0200 |
parents | |
children | 19885b43130e |
comparison
equal
deleted
inserted
replaced
13:4f583f7e242e | 14:89f3c3ef1fd2 |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Aug 3, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.foundation.NSHFSFileTypes; | |
8 | |
9 import dstep.corefoundation.CFBase; | |
10 import dstep.foundation.NSObjCRuntime; | |
11 import dstep.foundation.NSString; | |
12 import dstep.objc.bridge.Bridge; | |
13 import dstep.objc.objc : id; | |
14 | |
15 NSString NSFileTypeForHFSTypeCode (uint hfsFileTypeCode) | |
16 { | |
17 return Bridge.invokeObjcFunction!(NSString, bindings.NSFileTypeForHFSTypeCode, uint)(hfsFileTypeCode); | |
18 } | |
19 | |
20 uint NSHFSTypeCodeFromFileType (NSString fileTypeString) | |
21 { | |
22 return Bridge.invokeObjcFunction!(uint, bindings.NSHFSTypeCodeFromFileType, NSString)(fileTypeString); | |
23 } | |
24 | |
25 NSString NSHFSTypeOfFile (NSString fullFilePath) | |
26 { | |
27 return Bridge.invokeObjcFunction!(NSString, bindings.NSHFSTypeOfFile, NSString)(fullFilePath); | |
28 } | |
29 |