Mercurial > projects > dstep
comparison dstep/coredata/NSFetchRequestExpression.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children | b9de51448c6b |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 25, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.coredata.NSFetchRequestExpression; | |
8 | |
9 import dstep.foundation.NSExpression; | |
10 import dstep.objc.bridge.Bridge; | |
11 import dstep.objc.objc; | |
12 | |
13 enum | |
14 { | |
15 NSFetchRequestExpressionType = 50 | |
16 } | |
17 | |
18 class NSFetchRequestExpression : NSExpression | |
19 { | |
20 mixin (ObjcWrap); | |
21 | |
22 static NSExpression expressionForFetch (NSExpression fetch, NSExpression context, bool countFlag) | |
23 { | |
24 return invokeObjcSelfClass!(NSExpression, "expressionForFetch:context:countOnly:", NSExpression, NSExpression, bool)(fetch, context, countFlag); | |
25 } | |
26 | |
27 NSExpression requestExpression () | |
28 { | |
29 return invokeObjcSelf!(NSExpression, "requestExpression"); | |
30 } | |
31 | |
32 NSExpression contextExpression () | |
33 { | |
34 return invokeObjcSelf!(NSExpression, "contextExpression"); | |
35 } | |
36 | |
37 bool isCountOnlyRequest () | |
38 { | |
39 return invokeObjcSelf!(bool, "isCountOnlyRequest"); | |
40 } | |
41 } | |
42 |