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

/Frameworks/AppKit/browser.platform/CPTabViewItem.j

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 82 lines | 82 code | 0 blank | 0 comment | 0 complexity | a08ccf015520336e25997614e44d2291 MD5 | raw file
 1I;21;Foundation/CPObject.jI;15;AppKit/CPView.jc;2568;
 2CPSelectedTab=0;
 3CPBackgroundTab=1;
 4CPPressedTab=2;
 5var _1=objj_allocateClassPair(CPObject,"CPTabViewItem"),_2=_1.isa;
 6class_addIvars(_1,[new objj_ivar("_identifier"),new objj_ivar("_label"),new objj_ivar("_view"),new objj_ivar("_auxiliaryView")]);
 7objj_registerClassPair(_1);
 8objj_addClassForBundle(_1,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
 9class_addMethods(_1,[new objj_method(sel_getUid("initWithIdentifier:"),function(_3,_4,_5){
10with(_3){
11_3=objj_msgSendSuper({receiver:_3,super_class:objj_getClass("CPObject")},"init");
12if(_3){
13_identifier=_5;
14}
15return _3;
16}
17}),new objj_method(sel_getUid("setLabel:"),function(_6,_7,_8){
18with(_6){
19_label=_8;
20}
21}),new objj_method(sel_getUid("label"),function(_9,_a){
22with(_9){
23return _label;
24}
25}),new objj_method(sel_getUid("tabState"),function(_b,_c){
26with(_b){
27return _tabState;
28}
29}),new objj_method(sel_getUid("setIdentifier:"),function(_d,_e,_f){
30with(_d){
31_identifier=_f;
32}
33}),new objj_method(sel_getUid("identifier"),function(_10,_11){
34with(_10){
35return _identifier;
36}
37}),new objj_method(sel_getUid("setView:"),function(_12,_13,_14){
38with(_12){
39_view=_14;
40}
41}),new objj_method(sel_getUid("view"),function(_15,_16){
42with(_15){
43return _view;
44}
45}),new objj_method(sel_getUid("setAuxiliaryView:"),function(_17,_18,_19){
46with(_17){
47_auxiliaryView=_19;
48}
49}),new objj_method(sel_getUid("auxiliaryView"),function(_1a,_1b){
50with(_1a){
51return _auxiliaryView;
52}
53}),new objj_method(sel_getUid("tabView"),function(_1c,_1d){
54with(_1c){
55return _tabView;
56}
57})]);
58var _1e="CPTabViewItemIdentifierKey",_1f="CPTabViewItemLabelKey",_20="CPTabViewItemViewKey",_21="CPTabViewItemAuxViewKey";
59var _1=objj_getClass("CPTabViewItem");
60if(!_1){
61objj_exception_throw(new objj_exception(OBJJClassNotFoundException,"*** Could not find definition for class \"CPTabViewItem\""));
62}
63var _2=_1.isa;
64class_addMethods(_1,[new objj_method(sel_getUid("initWithCoder:"),function(_22,_23,_24){
65with(_22){
66_22=objj_msgSendSuper({receiver:_22,super_class:objj_getClass("CPObject")},"init");
67if(_22){
68_identifier=objj_msgSend(_24,"decodeObjectForKey:",_1e);
69_label=objj_msgSend(_24,"decodeObjectForKey:",_1f);
70_view=objj_msgSend(_24,"decodeObjectForKey:",_20);
71_auxiliaryView=objj_msgSend(_24,"decodeObjectForKey:",_21);
72}
73return _22;
74}
75}),new objj_method(sel_getUid("encodeWithCoder:"),function(_25,_26,_27){
76with(_25){
77objj_msgSend(_27,"encodeObject:forKey:",_identifier,_1e);
78objj_msgSend(_27,"encodeObject:forKey:",_label,_1f);
79objj_msgSend(_27,"encodeObject:forKey:",_view,_20);
80objj_msgSend(_27,"encodeObject:forKey:",_auxiliaryView,_21);
81}
82})]);