/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
- i;10;CPObject.jc;500;
- var CPNullSharedNull = nil;
- {var the_class = objj_allocateClassPair(CPObject, "CPNull"),
- meta_class = the_class.isa;objj_registerClassPair(the_class);
- objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
- class_addMethods(meta_class, [new objj_method(sel_getUid("null"), function $CPNull__null(self, _cmd)
- { with(self)
- {
- if (!CPNullSharedNull)
- CPNullSharedNull = objj_msgSend(objj_msgSend(CPNull, "alloc"), "init");
- return CPNullSharedNull;
- }
- })]);
- }