/Frameworks/Foundation/objj.platform/CPCoder.j

http://github.com/jfahrenkrug/MapKit-HelloWorld · Unknown · 60 lines · 60 code · 0 blank · 0 comment · 0 complexity · d6c1f203c0f32ac1d0db67bebb5cbf9f MD5 · raw file

  1. i;10;CPObject.ji;13;CPException.jc;1894;
  2. var _1=objj_allocateClassPair(CPObject,"CPCoder"),_2=_1.isa;
  3. objj_registerClassPair(_1);
  4. objj_addClassForBundle(_1,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
  5. class_addMethods(_1,[new objj_method(sel_getUid("allowsKeyedCoding"),function(_3,_4){
  6. with(_3){
  7. return NO;
  8. }
  9. }),new objj_method(sel_getUid("encodeValueOfObjCType:at:"),function(_5,_6,_7,_8){
  10. with(_5){
  11. CPInvalidAbstractInvocation();
  12. }
  13. }),new objj_method(sel_getUid("encodeDataObject:"),function(_9,_a,_b){
  14. with(_9){
  15. CPInvalidAbstractInvocation();
  16. }
  17. }),new objj_method(sel_getUid("encodeObject:"),function(_c,_d,_e){
  18. with(_c){
  19. }
  20. }),new objj_method(sel_getUid("encodePoint:"),function(_f,_10,_11){
  21. with(_f){
  22. objj_msgSend(_f,"encodeNumber:",_11.x);
  23. objj_msgSend(_f,"encodeNumber:",_11.y);
  24. }
  25. }),new objj_method(sel_getUid("encodeRect:"),function(_12,_13,_14){
  26. with(_12){
  27. objj_msgSend(_12,"encodePoint:",_14.origin);
  28. objj_msgSend(_12,"encodeSize:",_14.size);
  29. }
  30. }),new objj_method(sel_getUid("encodeSize:"),function(_15,_16,_17){
  31. with(_15){
  32. objj_msgSend(_15,"encodeNumber:",_17.width);
  33. objj_msgSend(_15,"encodeNumber:",_17.height);
  34. }
  35. }),new objj_method(sel_getUid("encodePropertyList:"),function(_18,_19,_1a){
  36. with(_18){
  37. }
  38. }),new objj_method(sel_getUid("encodeRootObject:"),function(_1b,_1c,_1d){
  39. with(_1b){
  40. objj_msgSend(_1b,"encodeObject:",_1d);
  41. }
  42. }),new objj_method(sel_getUid("encodeBycopyObject:"),function(_1e,_1f,_20){
  43. with(_1e){
  44. objj_msgSend(_1e,"encodeObject:",object);
  45. }
  46. }),new objj_method(sel_getUid("encodeConditionalObject:"),function(_21,_22,_23){
  47. with(_21){
  48. objj_msgSend(_21,"encodeObject:",object);
  49. }
  50. })]);
  51. var _1=objj_getClass("CPObject");
  52. if(!_1){
  53. objj_exception_throw(new objj_exception(OBJJClassNotFoundException,"*** Could not find definition for class \"CPObject\""));
  54. }
  55. var _2=_1.isa;
  56. class_addMethods(_1,[new objj_method(sel_getUid("awakeAfterUsingCoder:"),function(_24,_25,_26){
  57. with(_24){
  58. return _24;
  59. }
  60. })]);