comparison dstep/foundation/NSScriptKeyValueCoding.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.NSScriptKeyValueCoding;
8
9 import dstep.foundation.NSObject;
10 import dstep.foundation.NSString;
11 import dstep.objc.bridge.Bridge;
12 import dstep.objc.objc : id;
13
14 import bindings = dstep.foundation.NSScriptKeyValueCoding_bindings;
15
16 NSString NSOperationNotSupportedForKeyException;
17
18 static this ()
19 {
20 NSOperationNotSupportedForKeyException = new NSString(bindings.NSOperationNotSupportedForKeyException);
21 }
22
23 template TNSScriptKeyValueCoding ()
24 {
25 Object valueAtIndex (NSUInteger index, NSString key);
26 Object valueWithName (NSString name, NSString key);
27 Object valueWithUniqueID (Object uniqueID, NSString key);
28 void insertValue (Object value, NSUInteger index, NSString key);
29 void removeValueAtIndex (NSUInteger index, NSString key);
30 void replaceValueAtIndex (NSUInteger index, NSString key, Object value);
31 void insertValue (Object value, NSString key);
32 Object coerceValue (Object value, NSString key);
33 }
34