Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSFileManager.d @ 121:e1c48e37e0f5
Ported dwt.program.Program
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 31 Dec 2008 16:50:37 +0100 |
parents | d8635bb48c7c |
children | 63a09873578e |
comparison
equal
deleted
inserted
replaced
120:7046ca5a6d77 | 121:e1c48e37e0f5 |
---|---|
50 public NSDirectoryEnumerator enumeratorAtPath(NSString path) { | 50 public NSDirectoryEnumerator enumeratorAtPath(NSString path) { |
51 objc.id result = OS.objc_msgSend(this.id, OS.sel_enumeratorAtPath_, path !is null ? path.id : null); | 51 objc.id result = OS.objc_msgSend(this.id, OS.sel_enumeratorAtPath_, path !is null ? path.id : null); |
52 return result !is null ? new NSDirectoryEnumerator(result) : null; | 52 return result !is null ? new NSDirectoryEnumerator(result) : null; |
53 } | 53 } |
54 | 54 |
55 public bool removeItemAtPath(NSString path, ref NSError error) { | 55 public bool removeItemAtPath(NSString path, objc.id* error) { |
56 return OS.objc_msgSend_bool(this.id, OS.sel_removeItemAtPath_error_, path !is null ? path.id : null, error !is null ? &error.id : null); | 56 return OS.objc_msgSend_bool(this.id, OS.sel_removeItemAtPath_error_, path !is null ? path.id : null, error !is null ? error : null); |
57 } | 57 } |
58 | 58 |
59 } | 59 } |