PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

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

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 15 lines | 14 code | 1 blank | 0 comment | 0 complexity | 0f9cc7e9f23fe59f6ba65fc069e5c528 MD5 | raw file
 1i;10;CPObject.jc;500;
 2var CPNullSharedNull = nil;
 3{var the_class = objj_allocateClassPair(CPObject, "CPNull"),
 4meta_class = the_class.isa;objj_registerClassPair(the_class);
 5objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
 6class_addMethods(meta_class, [new objj_method(sel_getUid("null"), function $CPNull__null(self, _cmd)
 7{ with(self)
 8{
 9    if (!CPNullSharedNull)
10        CPNullSharedNull = objj_msgSend(objj_msgSend(CPNull, "alloc"), "init");
11    return CPNullSharedNull;
12}
13})]);
14}
15