PageRenderTime 14ms CodeModel.GetById 7ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/Frameworks/Debug/Foundation/objj.platform/CPURLResponse.j

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 37 lines | 36 code | 1 blank | 0 comment | 0 complexity | 2a3a3aa98f1e316edc6294f44936337a MD5 | raw file
 1i;10;CPObject.jc;1309;
 2{var the_class = objj_allocateClassPair(CPObject, "CPURLResponse"),
 3meta_class = the_class.isa;class_addIvars(the_class, [new objj_ivar("_URL")]);
 4objj_registerClassPair(the_class);
 5objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
 6class_addMethods(the_class, [new objj_method(sel_getUid("initWithURL:"), function $CPURLResponse__initWithURL_(self, _cmd, aURL)
 7{ with(self)
 8{
 9    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("CPObject") }, "init");
10    if (self)
11        _URL = aURL;
12    return self;
13}
14}), new objj_method(sel_getUid("URL"), function $CPURLResponse__URL(self, _cmd)
15{ with(self)
16{
17    return _URL;
18}
19})]);
20}
21{var the_class = objj_allocateClassPair(CPURLResponse, "CPHTTPURLResponse"),
22meta_class = the_class.isa;class_addIvars(the_class, [new objj_ivar("_statusCode")]);
23objj_registerClassPair(the_class);
24objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
25class_addMethods(the_class, [new objj_method(sel_getUid("_setStatusCode:"), function $CPHTTPURLResponse___setStatusCode_(self, _cmd, aStatusCode)
26{ with(self)
27{
28    _statusCode = aStatusCode;
29}
30}), new objj_method(sel_getUid("statusCode"), function $CPHTTPURLResponse__statusCode(self, _cmd)
31{ with(self)
32{
33    return _statusCode;
34}
35})]);
36}
37