/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

  1. i;10;CPObject.jc;500;
  2. var CPNullSharedNull = nil;
  3. {var the_class = objj_allocateClassPair(CPObject, "CPNull"),
  4. meta_class = the_class.isa;objj_registerClassPair(the_class);
  5. objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
  6. class_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. }