Mercurial > projects > dstep
comparison dstep/appkit/NSFileWrapper.d @ 22:f8a3b67adfcb
Removed duplicated methods
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 09 Feb 2010 18:02:03 +0100 |
parents | 19885b43130e |
children | b9de51448c6b |
comparison
equal
deleted
inserted
replaced
21:6b688d8f62c5 | 22:f8a3b67adfcb |
---|---|
60 { | 60 { |
61 id result = invokeObjcSelf!(id, "initSymbolicLinkWithDestination:", NSString)(path); | 61 id result = invokeObjcSelf!(id, "initSymbolicLinkWithDestination:", NSString)(path); |
62 return result is this.objcObject ? this : (result !is null ? new NSFileWrapper(result) : null); | 62 return result is this.objcObject ? this : (result !is null ? new NSFileWrapper(result) : null); |
63 } | 63 } |
64 | 64 |
65 NSFileWrapper initWithPath (NSString path) | |
66 { | |
67 id result = invokeObjcSelf!(id, "initWithPath:", NSString)(path); | |
68 return result is this.objcObject ? this : (result !is null ? new NSFileWrapper(result) : null); | |
69 } | |
70 | |
65 this (NSString path) | 71 this (NSString path) |
66 { | 72 { |
67 super(NSFileWrapper.alloc.initSymbolicLinkWithDestination(path).objcObject); | |
68 } | |
69 | |
70 NSFileWrapper initWithPath (NSString path) | |
71 { | |
72 id result = invokeObjcSelf!(id, "initWithPath:", NSString)(path); | |
73 return result is this.objcObject ? this : (result !is null ? new NSFileWrapper(result) : null); | |
74 } | |
75 | |
76 this (NSString path) | |
77 { | |
78 super(NSFileWrapper.alloc.initWithPath(path).objcObject); | 73 super(NSFileWrapper.alloc.initWithPath(path).objcObject); |
79 } | 74 } |
80 | 75 |
81 NSFileWrapper initWithSerializedRepresentation (NSData data) | 76 NSFileWrapper initWithSerializedRepresentation (NSData data) |
82 { | 77 { |
83 id result = invokeObjcSelf!(id, "initWithSerializedRepresentation:", NSData)(data); | 78 id result = invokeObjcSelf!(id, "initWithSerializedRepresentation:", NSData)(data); |
84 return result is this.objcObject ? this : (result !is null ? new NSFileWrapper(result) : null); | 79 return result is this.objcObject ? this : (result !is null ? new NSFileWrapper(result) : null); |
85 } | 80 } |
86 | 81 |
87 this (NSData data) | |
88 { | |
89 super(NSFileWrapper.alloc.initWithSerializedRepresentation(data).objcObject); | |
90 } | |
91 | |
92 bool writeToFile (NSString path, bool atomicFlag, bool updateFilenamesFlag) | 82 bool writeToFile (NSString path, bool atomicFlag, bool updateFilenamesFlag) |
93 { | 83 { |
94 return invokeObjcSelf!(bool, "writeToFile:atomically:updateFilenames:", NSString, bool, bool)(path, atomicFlag, updateFilenamesFlag); | 84 return invokeObjcSelf!(bool, "writeToFile:atomically:updateFilenames:", NSString, bool, bool)(path, atomicFlag, updateFilenamesFlag); |
95 } | 85 } |
96 | 86 |