comparison dstep/coredata/NSManagedObjectID.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.NSManagedObjectID;
8
9 import dstep.coredata.NSEntityDescription;
10 import dstep.coredata.NSPersistentStore;
11 import dstep.foundation.NSObject;
12 import dstep.foundation.NSURL;
13 import dstep.foundation.NSZone;
14 import dstep.objc.bridge.Bridge;
15 import dstep.objc.objc;
16
17 class NSManagedObjectID : NSObject, INSCopying
18 {
19 mixin (ObjcWrap);
20
21 NSEntityDescription entity ()
22 {
23 return invokeObjcSelf!(NSEntityDescription, "entity");
24 }
25
26 NSPersistentStore persistentStore ()
27 {
28 return invokeObjcSelf!(NSPersistentStore, "persistentStore");
29 }
30
31 bool isTemporaryID ()
32 {
33 return invokeObjcSelf!(bool, "isTemporaryID");
34 }
35
36 NSURL URIRepresentation ()
37 {
38 return invokeObjcSelf!(NSURL, "URIRepresentation");
39 }
40
41 typeof(this) copyWithZone (NSZone* zone)
42 {
43 return invokeObjcSelf!(typeof(this), "copyWithZone:", NSZone*)(zone);
44 }
45 }
46