/Frameworks/AppKit/rhino.platform/CPButton.j

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

  1. i;21;_CPImageAndTextView.ji;12;CGGeometry.ji;11;CPControl.jc;15898;
  2. CPScaleProportionally=0;
  3. CPScaleToFit=1;
  4. CPScaleNone=2;
  5. CPNoImage=0;
  6. CPImageOnly=1;
  7. CPImageLeft=2;
  8. CPImageRight=3;
  9. CPImageBelow=4;
  10. CPImageAbove=5;
  11. CPImageOverlaps=6;
  12. CPOnState=1;
  13. CPOffState=0;
  14. CPMixedState=-1;
  15. CPRoundedBezelStyle=1;
  16. CPRegularSquareBezelStyle=2;
  17. CPThickSquareBezelStyle=3;
  18. CPThickerSquareBezelStyle=4;
  19. CPDisclosureBezelStyle=5;
  20. CPShadowlessSquareBezelStyle=6;
  21. CPCircularBezelStyle=7;
  22. CPTexturedSquareBezelStyle=8;
  23. CPHelpButtonBezelStyle=9;
  24. CPSmallSquareBezelStyle=10;
  25. CPTexturedRoundedBezelStyle=11;
  26. CPRoundRectBezelStyle=12;
  27. CPRecessedBezelStyle=13;
  28. CPRoundedDisclosureBezelStyle=14;
  29. CPHUDBezelStyle=-1;
  30. CPMomentaryLightButton=0;
  31. CPPushOnPushOffButton=1;
  32. CPToggleButton=2;
  33. CPSwitchButton=3;
  34. CPRadioButton=4;
  35. CPMomentaryChangeButton=5;
  36. CPOnOffButton=6;
  37. CPMomentaryPushInButton=7;
  38. CPMomentaryPushButton=0;
  39. CPMomentaryLight=7;
  40. CPNoButtonMask=0;
  41. CPContentsButtonMask=1;
  42. CPPushInButtonMask=2;
  43. CPGrayButtonMask=4;
  44. CPBackgroundButtonMask=8;
  45. CPNoCellMask=CPNoButtonMask;
  46. CPContentsCellMask=CPContentsButtonMask;
  47. CPPushInCellMask=CPPushInButtonMask;
  48. CPChangeGrayCellMask=CPGrayButtonMask;
  49. CPChangeBackgroundCellMask=CPBackgroundButtonMask;
  50. CPButtonStateMixed=CPThemeState("mixed");
  51. var _1=objj_allocateClassPair(CPControl,"CPButton"),_2=_1.isa;
  52. class_addIvars(_1,[new objj_ivar("_allowsMixedState"),new objj_ivar("_title"),new objj_ivar("_alternateTitle"),new objj_ivar("_image"),new objj_ivar("_alternateImage"),new objj_ivar("_showsStateBy"),new objj_ivar("_highlightsBy"),new objj_ivar("_imageDimsWhenDisabled"),new objj_ivar("_bezelStyle"),new objj_ivar("_controlSize")]);
  53. objj_registerClassPair(_1);
  54. objj_addClassForBundle(_1,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
  55. class_addMethods(_1,[new objj_method(sel_getUid("initWithFrame:"),function(_3,_4,_5){
  56. with(_3){
  57. _3=objj_msgSendSuper({receiver:_3,super_class:objj_getClass("CPControl")},"initWithFrame:",_5);
  58. if(_3){
  59. objj_msgSend(_3,"setValue:forThemeAttribute:",CPCenterTextAlignment,"alignment");
  60. objj_msgSend(_3,"setValue:forThemeAttribute:",CPCenterVerticalTextAlignment,"vertical-alignment");
  61. objj_msgSend(_3,"setValue:forThemeAttribute:",CPImageLeft,"image-position");
  62. objj_msgSend(_3,"setValue:forThemeAttribute:",CPScaleNone,"image-scaling");
  63. _controlSize=CPRegularControlSize;
  64. objj_msgSend(_3,"setBordered:",YES);
  65. }
  66. return _3;
  67. }
  68. }),new objj_method(sel_getUid("allowsMixedState"),function(_6,_7){
  69. with(_6){
  70. return _allowsMixedState;
  71. }
  72. }),new objj_method(sel_getUid("setAllowsMixedState:"),function(_8,_9,_a){
  73. with(_8){
  74. _a=!!_a;
  75. if(_allowsMixedState===_a){
  76. return;
  77. }
  78. _allowsMixedState=_a;
  79. if(!_allowsMixedState){
  80. objj_msgSend(_8,"unsetThemeState:",CPButtonStateMixed);
  81. }
  82. }
  83. }),new objj_method(sel_getUid("setObjectValue:"),function(_b,_c,_d){
  84. with(_b){
  85. if(!_d||_d===""||(objj_msgSend(_d,"intValue")===0)){
  86. _d=CPOffState;
  87. }else{
  88. if(!objj_msgSend(_d,"isKindOfClass:",objj_msgSend(CPNumber,"class"))){
  89. _d=CPOnState;
  90. }else{
  91. if(_d>CPOnState){
  92. _d=CPOnState;
  93. }else{
  94. if(_d<CPOffState){
  95. if(objj_msgSend(_b,"allowsMixedState")){
  96. _d=CPMixedState;
  97. }else{
  98. _d=CPOnState;
  99. }
  100. }
  101. }
  102. }
  103. }
  104. objj_msgSendSuper({receiver:_b,super_class:objj_getClass("CPControl")},"setObjectValue:",_d);
  105. switch(objj_msgSend(_b,"objectValue")){
  106. case CPMixedState:
  107. objj_msgSend(_b,"unsetThemeState:",CPThemeStateSelected);
  108. objj_msgSend(_b,"setThemeState:",CPButtonStateMixed);
  109. break;
  110. case CPOnState:
  111. objj_msgSend(_b,"unsetThemeState:",CPButtonStateMixed);
  112. objj_msgSend(_b,"setThemeState:",CPThemeStateSelected);
  113. break;
  114. case CPOffState:
  115. objj_msgSend(_b,"unsetThemeState:",CPThemeStateSelected|CPButtonStateMixed);
  116. }
  117. }
  118. }),new objj_method(sel_getUid("nextState"),function(_e,_f){
  119. with(_e){
  120. if(objj_msgSend(_e,"allowsMixedState")){
  121. var _10=objj_msgSend(_e,"state");
  122. return _10-((_10===-1)?-2:1);
  123. }
  124. return 1-objj_msgSend(_e,"state");
  125. }
  126. }),new objj_method(sel_getUid("setNextState"),function(_11,_12){
  127. with(_11){
  128. objj_msgSend(_11,"setState:",objj_msgSend(_11,"nextState"));
  129. }
  130. }),new objj_method(sel_getUid("setState:"),function(_13,_14,_15){
  131. with(_13){
  132. objj_msgSend(_13,"setIntValue:",_15);
  133. }
  134. }),new objj_method(sel_getUid("state"),function(_16,_17){
  135. with(_16){
  136. return objj_msgSend(_16,"intValue");
  137. }
  138. }),new objj_method(sel_getUid("setTitle:"),function(_18,_19,_1a){
  139. with(_18){
  140. if(_title===_1a){
  141. return;
  142. }
  143. _title=_1a;
  144. objj_msgSend(_18,"setNeedsLayout");
  145. objj_msgSend(_18,"setNeedsDisplay:",YES);
  146. }
  147. }),new objj_method(sel_getUid("title"),function(_1b,_1c){
  148. with(_1b){
  149. return _title;
  150. }
  151. }),new objj_method(sel_getUid("setAlternateTitle:"),function(_1d,_1e,_1f){
  152. with(_1d){
  153. if(_alternateTitle===_1f){
  154. return;
  155. }
  156. _alternateTitle=_1f;
  157. objj_msgSend(_1d,"setNeedsLayout");
  158. objj_msgSend(_1d,"setNeedsDisplay:",YES);
  159. }
  160. }),new objj_method(sel_getUid("alternateTitle"),function(_20,_21){
  161. with(_20){
  162. return _alternateTitle;
  163. }
  164. }),new objj_method(sel_getUid("setImage:"),function(_22,_23,_24){
  165. with(_22){
  166. if(_image===_24){
  167. return;
  168. }
  169. _image=_24;
  170. objj_msgSend(_22,"setNeedsLayout");
  171. objj_msgSend(_22,"setNeedsDisplay:",YES);
  172. }
  173. }),new objj_method(sel_getUid("image"),function(_25,_26){
  174. with(_25){
  175. return _image;
  176. }
  177. }),new objj_method(sel_getUid("setAlternateImage:"),function(_27,_28,_29){
  178. with(_27){
  179. if(_alternateImage===_29){
  180. return;
  181. }
  182. _alternateImage=_29;
  183. objj_msgSend(_27,"setNeedsLayout");
  184. objj_msgSend(_27,"setNeedsDisplay:",YES);
  185. }
  186. }),new objj_method(sel_getUid("alternateImage"),function(_2a,_2b){
  187. with(_2a){
  188. return _alternateImage;
  189. }
  190. }),new objj_method(sel_getUid("setShowsStateBy:"),function(_2c,_2d,_2e){
  191. with(_2c){
  192. if(_showsStateBy===_2e){
  193. return;
  194. }
  195. _showsStateBy=_2e;
  196. objj_msgSend(_2c,"setNeedsDisplay:",YES);
  197. objj_msgSend(_2c,"setNeedsLayout");
  198. }
  199. }),new objj_method(sel_getUid("showsStateBy"),function(_2f,_30){
  200. with(_2f){
  201. return _showsStateBy;
  202. }
  203. }),new objj_method(sel_getUid("setHighlightsBy:"),function(_31,_32,_33){
  204. with(_31){
  205. if(_highlightsBy===_33){
  206. return;
  207. }
  208. _highlightsBy=_33;
  209. if(objj_msgSend(_31,"hasThemeState:",CPThemeStateHighlighted)){
  210. objj_msgSend(_31,"setNeedsDisplay:",YES);
  211. objj_msgSend(_31,"setNeedsLayout");
  212. }
  213. }
  214. }),new objj_method(sel_getUid("setButtonType:"),function(_34,_35,_36){
  215. with(_34){
  216. switch(buttonType){
  217. case CPMomentaryLightButton:
  218. objj_msgSend(_34,"setHighlightsBy:",CPChangeBackgroundCellMask);
  219. objj_msgSend(_34,"setShowsStateBy:",CPNoCellMask);
  220. break;
  221. case CPMomentaryPushInButton:
  222. objj_msgSend(_34,"setHighlightsBy:",CPPushInCellMask|CPChangeGrayCellMask);
  223. objj_msgSend(_34,"setShowsStateBy:",CPNoCellMask);
  224. break;
  225. case CPMomentaryChangeButton:
  226. objj_msgSend(_34,"setHighlightsBy:",CPContentsCellMask);
  227. objj_msgSend(_34,"setShowsStateBy:",CPNoCellMask);
  228. break;
  229. case CPPushOnPushOffButton:
  230. objj_msgSend(_34,"setHighlightsBy:",CPPushInCellMask|CPChangeGrayCellMask);
  231. objj_msgSend(_34,"setShowsStateBy:",CPChangeBackgroundCellMask);
  232. break;
  233. case CPOnOffButton:
  234. objj_msgSend(_34,"setHighlightsBy:",CPChangeBackgroundCellMask);
  235. objj_msgSend(_34,"setShowsStateBy:",CPChangeBackgroundCellMask);
  236. break;
  237. case CPToggleButton:
  238. objj_msgSend(_34,"setHighlightsBy:",CPPushInCellMask|NSContentsCellMask);
  239. objj_msgSend(_34,"setShowsStateBy:",CPContentsCellMask);
  240. break;
  241. case CPSwitchButton:
  242. objj_msgSend(CPException,"raise:reason:",CPInvalidArgumentException,"The CPSwitchButton type is not supported in Cappuccino, use the CPCheckBox class instead.");
  243. case CPRadioButton:
  244. objj_msgSend(CPException,"raise:reason:",CPInvalidArgumentException,"The CPRadioButton type is not supported in Cappuccino, use the CPRadio class instead.");
  245. default:
  246. objj_msgSend(CPException,"raise:reason:",CPInvalidArgumentException,"Unknown button type.");
  247. }
  248. objj_msgSend(_34,"setImageDimsWhenDisabled:",YES);
  249. }
  250. }),new objj_method(sel_getUid("setImageDimsWhenDisabled:"),function(_37,_38,_39){
  251. with(_37){
  252. _39=!!_39;
  253. if(_imageDimsWhenDisabled===_39){
  254. return;
  255. }
  256. _imageDimsWhenDisabled=_39;
  257. if(_imageDimsWhenDisabled){
  258. objj_msgSend(_37,"setNeedsDisplay:",YES);
  259. objj_msgSend(_37,"setNeedsLayout");
  260. }
  261. }
  262. }),new objj_method(sel_getUid("imageDimsWhenDisabled"),function(_3a,_3b){
  263. with(_3a){
  264. return _imageDimsWhenDisabled;
  265. }
  266. }),new objj_method(sel_getUid("startTrackingAt:"),function(_3c,_3d,_3e){
  267. with(_3c){
  268. objj_msgSend(_3c,"highlight:",YES);
  269. return objj_msgSendSuper({receiver:_3c,super_class:objj_getClass("CPControl")},"startTrackingAt:",_3e);
  270. }
  271. }),new objj_method(sel_getUid("stopTracking:at:mouseIsUp:"),function(_3f,_40,_41,_42,_43){
  272. with(_3f){
  273. objj_msgSend(_3f,"highlight:",NO);
  274. objj_msgSendSuper({receiver:_3f,super_class:objj_getClass("CPControl")},"stopTracking:at:mouseIsUp:",_41,_42,_43);
  275. if(_43&&CGRectContainsPoint(objj_msgSend(_3f,"bounds"),_42)){
  276. objj_msgSend(_3f,"setNextState");
  277. }
  278. }
  279. }),new objj_method(sel_getUid("contentRectForBounds:"),function(_44,_45,_46){
  280. with(_44){
  281. var _47=objj_msgSend(_44,"currentValueForThemeAttribute:","content-inset");
  282. if(((_47).top===0&&(_47).right===0&&(_47).bottom===0&&(_47).left===0)){
  283. return _46;
  284. }
  285. _46.origin.x+=_47.left;
  286. _46.origin.y+=_47.top;
  287. _46.size.width-=_47.left+_47.right;
  288. _46.size.height-=_47.top+_47.bottom;
  289. return _46;
  290. }
  291. }),new objj_method(sel_getUid("bezelRectForBounds:"),function(_48,_49,_4a){
  292. with(_48){
  293. if(!objj_msgSend(_48,"isBordered")){
  294. return {origin:{x:0,y:0},size:{width:0,height:0}};
  295. }
  296. var _4b=objj_msgSend(_48,"currentValueForThemeAttribute:","bezel-inset");
  297. if(((_4b).top===0&&(_4b).right===0&&(_4b).bottom===0&&(_4b).left===0)){
  298. return _4a;
  299. }
  300. _4a.origin.x+=_4b.left;
  301. _4a.origin.y+=_4b.top;
  302. _4a.size.width-=_4b.left+_4b.right;
  303. _4a.size.height-=_4b.top+_4b.bottom;
  304. return _4a;
  305. }
  306. }),new objj_method(sel_getUid("sizeToFit"),function(_4c,_4d){
  307. with(_4c){
  308. var _4e=objj_msgSend((objj_msgSend(_4c,"title")||" "),"sizeWithFont:",objj_msgSend(_4c,"currentValueForThemeAttribute:","font")),_4f=objj_msgSend(_4c,"currentValueForThemeAttribute:","content-inset"),_50=objj_msgSend(_4c,"currentValueForThemeAttribute:","min-size"),_51=objj_msgSend(_4c,"currentValueForThemeAttribute:","max-size");
  309. _4e.width=MAX(_4e.width+_4f.left+_4f.right,_50.width);
  310. _4e.height=MAX(_4e.height+_4f.top+_4f.bottom,_50.height);
  311. if(_51.width>=0){
  312. _4e.width=MIN(_4e.width,_51.width);
  313. }
  314. if(_51.height>=0){
  315. _4e.height=MIN(_4e.height,_51.height);
  316. }
  317. objj_msgSend(_4c,"setFrameSize:",_4e);
  318. }
  319. }),new objj_method(sel_getUid("rectForEphemeralSubviewNamed:"),function(_52,_53,_54){
  320. with(_52){
  321. if(_54==="bezel-view"){
  322. return objj_msgSend(_52,"bezelRectForBounds:",objj_msgSend(_52,"bounds"));
  323. }else{
  324. if(_54==="content-view"){
  325. return objj_msgSend(_52,"contentRectForBounds:",objj_msgSend(_52,"bounds"));
  326. }
  327. }
  328. return objj_msgSendSuper({receiver:_52,super_class:objj_getClass("CPControl")},"rectForEphemeralSubviewNamed:",_54);
  329. }
  330. }),new objj_method(sel_getUid("createEphemeralSubviewNamed:"),function(_55,_56,_57){
  331. with(_55){
  332. if(_57==="bezel-view"){
  333. var _58=objj_msgSend(objj_msgSend(CPView,"alloc"),"initWithFrame:",{origin:{x:0,y:0},size:{width:0,height:0}});
  334. objj_msgSend(_58,"setHitTests:",NO);
  335. return _58;
  336. }else{
  337. return objj_msgSend(objj_msgSend(_CPImageAndTextView,"alloc"),"initWithFrame:",{origin:{x:0,y:0},size:{width:0,height:0}});
  338. }
  339. return objj_msgSendSuper({receiver:_55,super_class:objj_getClass("CPControl")},"createEphemeralSubviewNamed:",_57);
  340. }
  341. }),new objj_method(sel_getUid("layoutSubviews"),function(_59,_5a){
  342. with(_59){
  343. var _5b=objj_msgSend(_59,"layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:","bezel-view",CPWindowBelow,"content-view");
  344. if(_5b){
  345. objj_msgSend(_5b,"setBackgroundColor:",objj_msgSend(_59,"currentValueForThemeAttribute:","bezel-color"));
  346. }
  347. var _5c=objj_msgSend(_59,"layoutEphemeralSubviewNamed:positioned:relativeToEphemeralSubviewNamed:","content-view",CPWindowAbove,"bezel-view");
  348. if(_5c){
  349. objj_msgSend(_5c,"setText:",(objj_msgSend(_59,"hasThemeState:",CPThemeStateHighlighted)&&_alternateTitle)?_alternateTitle:_title);
  350. objj_msgSend(_5c,"setImage:",(objj_msgSend(_59,"hasThemeState:",CPThemeStateHighlighted)&&_alternateImage)?_alternateImage:_image);
  351. objj_msgSend(_5c,"setFont:",objj_msgSend(_59,"currentValueForThemeAttribute:","font"));
  352. objj_msgSend(_5c,"setTextColor:",objj_msgSend(_59,"currentValueForThemeAttribute:","text-color"));
  353. objj_msgSend(_5c,"setAlignment:",objj_msgSend(_59,"currentValueForThemeAttribute:","alignment"));
  354. objj_msgSend(_5c,"setVerticalAlignment:",objj_msgSend(_59,"currentValueForThemeAttribute:","vertical-alignment"));
  355. objj_msgSend(_5c,"setLineBreakMode:",objj_msgSend(_59,"currentValueForThemeAttribute:","line-break-mode"));
  356. objj_msgSend(_5c,"setTextShadowColor:",objj_msgSend(_59,"currentValueForThemeAttribute:","text-shadow-color"));
  357. objj_msgSend(_5c,"setTextShadowOffset:",objj_msgSend(_59,"currentValueForThemeAttribute:","text-shadow-offset"));
  358. objj_msgSend(_5c,"setImagePosition:",objj_msgSend(_59,"currentValueForThemeAttribute:","image-position"));
  359. objj_msgSend(_5c,"setImageScaling:",objj_msgSend(_59,"currentValueForThemeAttribute:","image-scaling"));
  360. }
  361. }
  362. }),new objj_method(sel_getUid("setDefaultButton:"),function(_5d,_5e,_5f){
  363. with(_5d){
  364. if(_5f){
  365. objj_msgSend(_5d,"setThemeState:",CPThemeStateDefault);
  366. }else{
  367. objj_msgSend(_5d,"unsetThemeState:",CPThemeStateDefault);
  368. }
  369. }
  370. }),new objj_method(sel_getUid("setBordered:"),function(_60,_61,_62){
  371. with(_60){
  372. if(_62){
  373. objj_msgSend(_60,"setThemeState:",CPThemeStateBordered);
  374. }else{
  375. objj_msgSend(_60,"unsetThemeState:",CPThemeStateBordered);
  376. }
  377. }
  378. }),new objj_method(sel_getUid("isBordered"),function(_63,_64){
  379. with(_63){
  380. return objj_msgSend(_63,"hasThemeState:",CPThemeStateBordered);
  381. }
  382. })]);
  383. class_addMethods(_2,[new objj_method(sel_getUid("buttonWithTitle:"),function(_65,_66,_67){
  384. with(_65){
  385. return objj_msgSend(_65,"buttonWithTitle:theme:",_67,objj_msgSend(CPTheme,"defaultTheme"));
  386. }
  387. }),new objj_method(sel_getUid("buttonWithTitle:theme:"),function(_68,_69,_6a,_6b){
  388. with(_68){
  389. var _6c=objj_msgSend(objj_msgSend(_68,"alloc"),"init");
  390. objj_msgSend(_6c,"setTheme:",_6b);
  391. objj_msgSend(_6c,"setTitle:",_6a);
  392. objj_msgSend(_6c,"sizeToFit");
  393. return _6c;
  394. }
  395. }),new objj_method(sel_getUid("themeClass"),function(_6d,_6e){
  396. with(_6d){
  397. return "button";
  398. }
  399. }),new objj_method(sel_getUid("themeAttributes"),function(_6f,_70){
  400. with(_6f){
  401. return objj_msgSend(CPDictionary,"dictionaryWithObjects:forKeys:",[{top:(0),right:(0),bottom:(0),left:(0)},{top:(0),right:(0),bottom:(0),left:(0)},nil],["bezel-inset","content-inset","bezel-color"]);
  402. }
  403. })]);
  404. var _1=objj_getClass("CPButton");
  405. if(!_1){
  406. objj_exception_throw(new objj_exception(OBJJClassNotFoundException,"*** Could not find definition for class \"CPButton\""));
  407. }
  408. var _2=_1.isa;
  409. class_addMethods(_1,[new objj_method(sel_getUid("setBezelStyle:"),function(_71,_72,_73){
  410. with(_71){
  411. }
  412. }),new objj_method(sel_getUid("bezelStyle"),function(_74,_75){
  413. with(_74){
  414. }
  415. })]);
  416. var _76="CPButtonImageKey",_77="CPButtonAlternateImageKey",_78="CPButtonTitleKey",_79="CPButtonAlternateTitleKey",_7a="CPButtonIsBorderedKey";
  417. var _1=objj_getClass("CPButton");
  418. if(!_1){
  419. objj_exception_throw(new objj_exception(OBJJClassNotFoundException,"*** Could not find definition for class \"CPButton\""));
  420. }
  421. var _2=_1.isa;
  422. class_addMethods(_1,[new objj_method(sel_getUid("initWithCoder:"),function(_7b,_7c,_7d){
  423. with(_7b){
  424. _7b=objj_msgSendSuper({receiver:_7b,super_class:objj_getClass("CPControl")},"initWithCoder:",_7d);
  425. if(_7b){
  426. _controlSize=CPRegularControlSize;
  427. objj_msgSend(_7b,"setImage:",objj_msgSend(_7d,"decodeObjectForKey:",_76));
  428. objj_msgSend(_7b,"setAlternateImage:",objj_msgSend(_7d,"decodeObjectForKey:",_77));
  429. objj_msgSend(_7b,"setTitle:",objj_msgSend(_7d,"decodeObjectForKey:",_78));
  430. objj_msgSend(_7b,"setAlternateTitle:",objj_msgSend(_7d,"decodeObjectForKey:",_79));
  431. objj_msgSend(_7b,"setNeedsLayout");
  432. objj_msgSend(_7b,"setNeedsDisplay:",YES);
  433. }
  434. return _7b;
  435. }
  436. }),new objj_method(sel_getUid("encodeWithCoder:"),function(_7e,_7f,_80){
  437. with(_7e){
  438. objj_msgSendSuper({receiver:_7e,super_class:objj_getClass("CPControl")},"encodeWithCoder:",_80);
  439. objj_msgSend(_80,"encodeObject:forKey:",_image,_76);
  440. objj_msgSend(_80,"encodeObject:forKey:",_alternateImage,_77);
  441. objj_msgSend(_80,"encodeObject:forKey:",_title,_78);
  442. objj_msgSend(_80,"encodeObject:forKey:",_alternateTitle,_79);
  443. }
  444. })]);
  445. i;12;CPCheckBox.ji;9;CPRadio.j