PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Frameworks/AppKit/rhino.platform/CPApplication.j

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 444 lines | 444 code | 0 blank | 0 comment | 0 complexity | 8a43789c45acc226089a7ee933e5de26 MD5 | raw file
  1I;21;Foundation/CPBundle.ji;17;CPCompatibility.ji;9;CPEvent.ji;8;CPMenu.ji;13;CPResponder.ji;22;CPDocumentController.ji;14;CPThemeBlend.jc;17316;
  2var _1="CPMainCibFile",_2="Main cib file base name";
  3CPApp=nil;
  4CPApplicationWillFinishLaunchingNotification="CPApplicationWillFinishLaunchingNotification";
  5CPApplicationDidFinishLaunchingNotification="CPApplicationDidFinishLaunchingNotification";
  6CPRunStoppedResponse=-1000;
  7CPRunAbortedResponse=-1001;
  8CPRunContinuesResponse=-1002;
  9var _3=objj_allocateClassPair(CPResponder,"CPApplication"),_4=_3.isa;
 10class_addIvars(_3,[new objj_ivar("_eventListeners"),new objj_ivar("_currentEvent"),new objj_ivar("_windows"),new objj_ivar("_keyWindow"),new objj_ivar("_mainWindow"),new objj_ivar("_mainMenu"),new objj_ivar("_documentController"),new objj_ivar("_currentSession"),new objj_ivar("_delegate"),new objj_ivar("_namedArgs"),new objj_ivar("_args"),new objj_ivar("_fullArgsString")]);
 11objj_registerClassPair(_3);
 12objj_addClassForBundle(_3,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
 13class_addMethods(_3,[new objj_method(sel_getUid("init"),function(_5,_6){
 14with(_5){
 15_5=objj_msgSendSuper({receiver:_5,super_class:objj_getClass("CPResponder")},"init");
 16if(_5){
 17_eventListeners=[];
 18_windows=[];
 19objj_msgSend(_windows,"addObject:",nil);
 20_mainMenu=objj_msgSend(objj_msgSend(CPMenu,"alloc"),"initWithTitle:","MainMenu");
 21objj_msgSend(_mainMenu,"setAutoenablesItems:",NO);
 22var _7=objj_msgSend(CPBundle,"bundleForClass:",objj_msgSend(CPApplication,"class")),_8=objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","New",sel_getUid("newDocument:"),"N");
 23objj_msgSend(_8,"setImage:",objj_msgSend(objj_msgSend(CPImage,"alloc"),"initWithContentsOfFile:size:",objj_msgSend(_7,"pathForResource:","CPApplication/New.png"),CGSizeMake(16,16)));
 24objj_msgSend(_8,"setAlternateImage:",objj_msgSend(objj_msgSend(CPImage,"alloc"),"initWithContentsOfFile:size:",objj_msgSend(_7,"pathForResource:","CPApplication/NewHighlighted.png"),CGSizeMake(16,16)));
 25objj_msgSend(_mainMenu,"addItem:",_8);
 26var _9=objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Open",sel_getUid("openDocument:"),"O");
 27objj_msgSend(_9,"setImage:",objj_msgSend(objj_msgSend(CPImage,"alloc"),"initWithContentsOfFile:size:",objj_msgSend(_7,"pathForResource:","CPApplication/Open.png"),CGSizeMake(16,16)));
 28objj_msgSend(_9,"setAlternateImage:",objj_msgSend(objj_msgSend(CPImage,"alloc"),"initWithContentsOfFile:size:",objj_msgSend(_7,"pathForResource:","CPApplication/OpenHighlighted.png"),CGSizeMake(16,16)));
 29objj_msgSend(_mainMenu,"addItem:",_9);
 30var _a=objj_msgSend(objj_msgSend(CPMenu,"alloc"),"initWithTitle:","Save"),_b=objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Save",sel_getUid("saveDocument:"),nil);
 31objj_msgSend(_b,"setImage:",objj_msgSend(objj_msgSend(CPImage,"alloc"),"initWithContentsOfFile:size:",objj_msgSend(_7,"pathForResource:","CPApplication/Save.png"),CGSizeMake(16,16)));
 32objj_msgSend(_b,"setAlternateImage:",objj_msgSend(objj_msgSend(CPImage,"alloc"),"initWithContentsOfFile:size:",objj_msgSend(_7,"pathForResource:","CPApplication/SaveHighlighted.png"),CGSizeMake(16,16)));
 33objj_msgSend(_a,"addItem:",objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Save",sel_getUid("saveDocument:"),"S"));
 34objj_msgSend(_a,"addItem:",objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Save As",sel_getUid("saveDocumentAs:"),nil));
 35objj_msgSend(_b,"setSubmenu:",_a);
 36objj_msgSend(_mainMenu,"addItem:",_b);
 37var _c=objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Edit",nil,nil),_d=objj_msgSend(objj_msgSend(CPMenu,"alloc"),"initWithTitle:","Edit"),_e=objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Undo",sel_getUid("undo:"),CPUndoKeyEquivalent),_f=objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Redo",sel_getUid("redo:"),CPRedoKeyEquivalent);
 38objj_msgSend(_e,"setKeyEquivalentModifierMask:",CPUndoKeyEquivalentModifierMask);
 39objj_msgSend(_f,"setKeyEquivalentModifierMask:",CPRedoKeyEquivalentModifierMask);
 40objj_msgSend(_d,"addItem:",_e);
 41objj_msgSend(_d,"addItem:",_f);
 42objj_msgSend(_d,"addItem:",objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Cut",sel_getUid("cut:"),"X")),objj_msgSend(_d,"addItem:",objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Copy",sel_getUid("copy:"),"C")),objj_msgSend(_d,"addItem:",objj_msgSend(objj_msgSend(CPMenuItem,"alloc"),"initWithTitle:action:keyEquivalent:","Paste",sel_getUid("paste:"),"V"));
 43objj_msgSend(_c,"setSubmenu:",_d);
 44objj_msgSend(_c,"setHidden:",YES);
 45objj_msgSend(_mainMenu,"addItem:",_c);
 46objj_msgSend(_mainMenu,"addItem:",objj_msgSend(CPMenuItem,"separatorItem"));
 47}
 48return _5;
 49}
 50}),new objj_method(sel_getUid("setDelegate:"),function(_10,_11,_12){
 51with(_10){
 52if(_delegate==_12){
 53return;
 54}
 55var _13=objj_msgSend(CPNotificationCenter,"defaultCenter");
 56if(_delegate){
 57objj_msgSend(_13,"removeObserver:name:object:",_delegate,CPApplicationWillFinishLaunchingNotification,_10);
 58objj_msgSend(_13,"removeObserver:name:object:",_delegate,CPApplicationDidFinishLaunchingNotification,_10);
 59}
 60_delegate=_12;
 61if(objj_msgSend(_delegate,"respondsToSelector:",sel_getUid("applicationWillFinishLaunching:"))){
 62objj_msgSend(_13,"addObserver:selector:name:object:",_delegate,sel_getUid("applicationWillFinishLaunching:"),CPApplicationWillFinishLaunchingNotification,_10);
 63}
 64if(objj_msgSend(_delegate,"respondsToSelector:",sel_getUid("applicationDidFinishLaunching:"))){
 65objj_msgSend(_13,"addObserver:selector:name:object:",_delegate,sel_getUid("applicationDidFinishLaunching:"),CPApplicationDidFinishLaunchingNotification,_10);
 66}
 67}
 68}),new objj_method(sel_getUid("delegate"),function(_14,_15){
 69with(_14){
 70return _delegate;
 71}
 72}),new objj_method(sel_getUid("finishLaunching"),function(_16,_17){
 73with(_16){
 74var _18=objj_msgSend(CPBundle,"mainBundle"),_19=objj_msgSend(_18,"objectForInfoDictionaryKey:","CPBundleDocumentTypes");
 75if(objj_msgSend(_19,"count")>0){
 76_documentController=objj_msgSend(CPDocumentController,"sharedDocumentController");
 77}
 78var _1a=objj_msgSend(_18,"objectForInfoDictionaryKey:","CPApplicationDelegateClass");
 79if(_1a){
 80var _1b=objj_getClass(_1a);
 81if(_1b){
 82if(objj_msgSend(_documentController,"class")==_1b){
 83objj_msgSend(_16,"setDelegate:",_documentController);
 84}else{
 85objj_msgSend(_16,"setDelegate:",objj_msgSend(objj_msgSend(_1b,"alloc"),"init"));
 86}
 87}
 88}
 89var _1c=objj_msgSend(CPNotificationCenter,"defaultCenter");
 90objj_msgSend(_1c,"postNotificationName:object:",CPApplicationWillFinishLaunchingNotification,_16);
 91if(_documentController){
 92objj_msgSend(_documentController,"newDocument:",_16);
 93}
 94objj_msgSend(_1c,"postNotificationName:object:",CPApplicationDidFinishLaunchingNotification,_16);
 95objj_msgSend(objj_msgSend(CPRunLoop,"currentRunLoop"),"limitDateForMode:",CPDefaultRunLoopMode);
 96}
 97}),new objj_method(sel_getUid("run"),function(_1d,_1e){
 98with(_1d){
 99objj_msgSend(_1d,"finishLaunching");
100}
101}),new objj_method(sel_getUid("runModalForWindow:"),function(_1f,_20,_21){
102with(_1f){
103objj_msgSend(_1f,"runModalSession:",objj_msgSend(_1f,"beginModalSessionForWindow:",_21));
104}
105}),new objj_method(sel_getUid("stopModalWithCode:"),function(_22,_23,_24){
106with(_22){
107if(!_currentSession){
108return;
109}
110_currentSession._state=_24;
111_currentSession=_currentSession._previous;
112objj_msgSend(_22,"_removeRunModalLoop");
113}
114}),new objj_method(sel_getUid("_removeRunModalLoop"),function(_25,_26){
115with(_25){
116var _27=_eventListeners.length;
117while(_27--){
118if(_eventListeners[_27]._callback===_28){
119_eventListeners.splice(_27,1);
120return;
121}
122}
123}
124}),new objj_method(sel_getUid("stopModal"),function(_29,_2a){
125with(_29){
126objj_msgSend(_29,"stopModalWithCode:",CPRunStoppedResponse);
127}
128}),new objj_method(sel_getUid("abortModal"),function(_2b,_2c){
129with(_2b){
130objj_msgSend(_2b,"stopModalWithCode:",CPRunAbortedResponse);
131}
132}),new objj_method(sel_getUid("beginModalSessionForWindow:"),function(_2d,_2e,_2f){
133with(_2d){
134return _30(_2f,0);
135}
136}),new objj_method(sel_getUid("runModalSession:"),function(_31,_32,_33){
137with(_31){
138_33._previous=_currentSession;
139_currentSession=_33;
140var _34=_33._window;
141objj_msgSend(_34,"center");
142objj_msgSend(_34,"makeKeyAndOrderFront:",_31);
143objj_msgSend(CPApp,"setCallback:forNextEventMatchingMask:untilDate:inMode:dequeue:",_28,CPAnyEventMask,nil,0,NO);
144}
145}),new objj_method(sel_getUid("modalWindow"),function(_35,_36){
146with(_35){
147if(!_currentSession){
148return nil;
149}
150return _currentSession._window;
151}
152}),new objj_method(sel_getUid("_handleKeyEquivalent:"),function(_37,_38,_39){
153with(_37){
154if(objj_msgSend(_mainMenu,"performKeyEquivalent:",_39)){
155return YES;
156}
157return NO;
158}
159}),new objj_method(sel_getUid("sendEvent:"),function(_3a,_3b,_3c){
160with(_3a){
161if(objj_msgSend(_3c,"type")==CPKeyDown&&objj_msgSend(_3c,"modifierFlags")&(CPCommandKeyMask|CPControlKeyMask)&&objj_msgSend(objj_msgSend(_3c,"characters"),"length")>0&&objj_msgSend(_3a,"_handleKeyEquivalent:",_3c)){
162return;
163}
164if(_eventListeners.length){
165if(_eventListeners[_eventListeners.length-1]._mask&(1<<objj_msgSend(_3c,"type"))){
166_eventListeners.pop()._callback(_3c);
167}
168return;
169}
170objj_msgSend(objj_msgSend(_3c,"window"),"sendEvent:",_3c);
171}
172}),new objj_method(sel_getUid("doCommandBySelector:"),function(_3d,_3e,_3f){
173with(_3d){
174if(objj_msgSend(_delegate,"respondsToSelector:",_3f)){
175objj_msgSend(_delegate,"performSelector:",_3f);
176}else{
177objj_msgSendSuper({receiver:_3d,super_class:objj_getClass("CPResponder")},"doCommandBySelector:",_3f);
178}
179}
180}),new objj_method(sel_getUid("keyWindow"),function(_40,_41){
181with(_40){
182return _keyWindow;
183}
184}),new objj_method(sel_getUid("mainWindow"),function(_42,_43){
185with(_42){
186return _mainWindow;
187}
188}),new objj_method(sel_getUid("windowWithWindowNumber:"),function(_44,_45,_46){
189with(_44){
190return _windows[_46];
191}
192}),new objj_method(sel_getUid("windows"),function(_47,_48){
193with(_47){
194return _windows;
195}
196}),new objj_method(sel_getUid("mainMenu"),function(_49,_4a){
197with(_49){
198return _mainMenu;
199}
200}),new objj_method(sel_getUid("setMainMenu:"),function(_4b,_4c,_4d){
201with(_4b){
202_mainMenu=_4d;
203}
204}),new objj_method(sel_getUid("orderFrontStandardAboutPanel:"),function(_4e,_4f,_50){
205with(_4e){
206objj_msgSend(_4e,"orderFrontStandardAboutPanelWithOptions:",nil);
207}
208}),new objj_method(sel_getUid("orderFrontStandardAboutPanelWithOptions:"),function(_51,_52,_53){
209with(_51){
210}
211}),new objj_method(sel_getUid("tryToPerform:with:"),function(_54,_55,_56,_57){
212with(_54){
213if(!_56){
214return NO;
215}
216if(objj_msgSendSuper({receiver:_54,super_class:objj_getClass("CPResponder")},"tryToPerform:with:",_56,_57)){
217return YES;
218}
219if(objj_msgSend(_delegate,"respondsToSelector:",_56)){
220objj_msgSend(_delegate,"performSelector:withObject:",_56,_57);
221return YES;
222}
223return NO;
224}
225}),new objj_method(sel_getUid("sendAction:to:from:"),function(_58,_59,_5a,_5b,_5c){
226with(_58){
227var _5d=objj_msgSend(_58,"targetForAction:to:from:",_5a,_5b,_5c);
228if(!_5d){
229return NO;
230}
231objj_msgSend(_5d,"performSelector:withObject:",_5a,_5c);
232return YES;
233}
234}),new objj_method(sel_getUid("targetForAction:to:from:"),function(_5e,_5f,_60,_61,_62){
235with(_5e){
236if(!_60){
237return nil;
238}
239if(_61){
240return _61;
241}
242return objj_msgSend(_5e,"targetForAction:",_60);
243}
244}),new objj_method(sel_getUid("_targetForWindow:action:"),function(_63,_64,_65,_66){
245with(_63){
246var _67=objj_msgSend(_65,"firstResponder"),_68=YES;
247while(_67){
248if(objj_msgSend(_67,"respondsToSelector:",_66)){
249return _67;
250}
251if(_67==_65){
252_68=NO;
253}
254_67=objj_msgSend(_67,"nextResponder");
255}
256if(_68&&objj_msgSend(_65,"respondsToSelector:",_66)){
257return _65;
258}
259var _69=objj_msgSend(_65,"delegate");
260if(objj_msgSend(_69,"respondsToSelector:",_66)){
261return _69;
262}
263var _6a=objj_msgSend(_65,"windowController");
264if(objj_msgSend(_6a,"respondsToSelector:",_66)){
265return _6a;
266}
267var _6b=objj_msgSend(_6a,"document");
268if(_6b!=_69&&objj_msgSend(_6b,"respondsToSelector:",_66)){
269return _6b;
270}
271return nil;
272}
273}),new objj_method(sel_getUid("targetForAction:"),function(_6c,_6d,_6e){
274with(_6c){
275if(!_6e){
276return nil;
277}
278var _6f=objj_msgSend(_6c,"_targetForWindow:action:",objj_msgSend(_6c,"keyWindow"),_6e);
279if(_6f){
280return _6f;
281}
282_6f=objj_msgSend(_6c,"_targetForWindow:action:",objj_msgSend(_6c,"mainWindow"),_6e);
283if(_6f){
284return _6f;
285}
286if(objj_msgSend(_6c,"respondsToSelector:",_6e)){
287return _6c;
288}
289if(objj_msgSend(_delegate,"respondsToSelector:",_6e)){
290return _delegate;
291}
292if(objj_msgSend(_documentController,"respondsToSelector:",_6e)){
293return _documentController;
294}
295return nil;
296}
297}),new objj_method(sel_getUid("setCallback:forNextEventMatchingMask:untilDate:inMode:dequeue:"),function(_70,_71,_72,_73,_74,_75,_76){
298with(_70){
299_eventListeners.push(_77(_73,_72));
300if(_eventListeners.length==3){
301objj_debug_print_backtrace();
302}
303}
304}),new objj_method(sel_getUid("setTarget:selector:forNextEventMatchingMask:untilDate:inMode:dequeue:"),function(_78,_79,_7a,_7b,_7c,_7d,_7e,_7f){
305with(_78){
306_eventListeners.push(_77(_7c,function(_80){
307objj_msgSend(_7a,_7b,_80);
308}));
309}
310}),new objj_method(sel_getUid("beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:"),function(_81,_82,_83,_84,_85,_86,_87){
311with(_81){
312objj_msgSend(_84,"_attachSheet:modalDelegate:didEndSelector:contextInfo:",_83,_85,_86,_87);
313}
314}),new objj_method(sel_getUid("arguments"),function(_88,_89){
315with(_88){
316if(_fullArgsString!=window.location.hash){
317objj_msgSend(_88,"_reloadArguments");
318}
319return _args;
320}
321}),new objj_method(sel_getUid("setArguments:"),function(_8a,_8b,_8c){
322with(_8a){
323if(!_8c||_8c.length==0){
324_args=[];
325window.location.hash="#";
326return;
327}
328if(objj_msgSend(_8c,"class")!=CPArray){
329_8c=objj_msgSend(CPArray,"arrayWithObject:",_8c);
330}
331_args=_8c;
332var _8d=objj_msgSend(_args,"copy");
333for(var i=0,_8f=_8d.length;i<_8f;i++){
334_8d[i]=encodeURIComponent(_8d[i]);
335}
336var _90=objj_msgSend(_8d,"componentsJoinedByString:","/");
337window.location.hash="#"+_90;
338}
339}),new objj_method(sel_getUid("_reloadArguments"),function(_91,_92){
340with(_91){
341_fullArgsString=window.location.hash;
342var _93=_fullArgsString.replace("#","").split("/").slice(0);
343for(var i=0,_95=_93.length;i<_95;i++){
344_93[i]=decodeURIComponent(_93[i]);
345}
346_args=_93;
347}
348}),new objj_method(sel_getUid("namedArguments"),function(_96,_97){
349with(_96){
350return _namedArgs;
351}
352})]);
353class_addMethods(_4,[new objj_method(sel_getUid("sharedApplication"),function(_98,_99){
354with(_98){
355if(!CPApp){
356CPApp=objj_msgSend(objj_msgSend(CPApplication,"alloc"),"init");
357}
358return CPApp;
359}
360})]);
361var _30=function(_9a,_9b){
362return {_window:_9a,_state:CPRunContinuesResponse,_previous:nil};
363};
364var _77=function(_9c,_9d){
365return {_mask:_9c,_callback:_9d};
366};
367var _28=function(_9e){
368objj_msgSend(CPApp,"setCallback:forNextEventMatchingMask:untilDate:inMode:dequeue:",_28,CPAnyEventMask,nil,0,NO);
369var _9f=objj_msgSend(_9e,"window"),_a0=CPApp._currentSession;
370if(_9f==_a0._window||objj_msgSend(_9f,"worksWhenModal")){
371objj_msgSend(_9f,"sendEvent:",_9e);
372}
373};
374CPApplicationMain=function(_a1,_a2){
375var _a3=objj_msgSend(CPBundle,"mainBundle"),_a4=objj_msgSend(_a3,"principalClass");
376if(!_a4){
377_a4=objj_msgSend(CPApplication,"class");
378}
379objj_msgSend(_a4,"sharedApplication");
380if(!_a1&&!_a2){
381var _a1=objj_msgSend(CPApp,"arguments"),_a5=window.location.search.substring(1).split("&");
382_a2=objj_msgSend(CPDictionary,"dictionary");
383if(objj_msgSend(_a1,"containsObject:","debug")){
384CPLogRegister(CPLogPopup);
385}
386for(var i=0;i<_a5.length;i++){
387var _a7=_a5[i].indexOf("=");
388if(_a7==-1){
389objj_msgSend(_a2,"setObject:forKey:","",_a5[i]);
390}else{
391objj_msgSend(_a2,"setObject:forKey:",_a5[i].substring(_a7+1),_a5[i].substring(0,_a7));
392}
393}
394}
395CPApp._args=_a1;
396CPApp._namedArgs=_a2;
397objj_msgSend(_CPAppBootstrapper,"performActions");
398};
399var _a8=nil;
400var _3=objj_allocateClassPair(CPObject,"_CPAppBootstrapper"),_4=_3.isa;
401objj_registerClassPair(_3);
402objj_addClassForBundle(_3,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
403class_addMethods(_4,[new objj_method(sel_getUid("actions"),function(_a9,_aa){
404with(_a9){
405return [sel_getUid("loadDefaultTheme"),sel_getUid("loadMainCibFile")];
406}
407}),new objj_method(sel_getUid("performActions"),function(_ab,_ac){
408with(_ab){
409if(!_a8){
410_a8=objj_msgSend(_ab,"actions");
411}
412while(_a8.length){
413var _ad=_a8.shift();
414if(objj_msgSend(_ab,_ad)){
415return;
416}
417}
418objj_msgSend(CPApp,"run");
419}
420}),new objj_method(sel_getUid("loadDefaultTheme"),function(_ae,_af){
421with(_ae){
422var _b0=objj_msgSend(objj_msgSend(CPThemeBlend,"alloc"),"initWithContentsOfURL:",objj_msgSend(objj_msgSend(CPBundle,"bundleForClass:",objj_msgSend(CPApplication,"class")),"pathForResource:","Aristo.blend"));
423objj_msgSend(_b0,"loadWithDelegate:",_ae);
424return YES;
425}
426}),new objj_method(sel_getUid("blendDidFinishLoading:"),function(_b1,_b2,_b3){
427with(_b1){
428objj_msgSend(CPTheme,"setDefaultTheme:",objj_msgSend(CPTheme,"themeNamed:","Aristo"));
429objj_msgSend(_b1,"performActions");
430}
431}),new objj_method(sel_getUid("loadMainCibFile"),function(_b4,_b5){
432with(_b4){
433var _b6=objj_msgSend(CPBundle,"mainBundle"),_b7=objj_msgSend(_b6,"objectForInfoDictionaryKey:",_1)||objj_msgSend(_b6,"objectForInfoDictionaryKey:",_2);
434if(_b7){
435objj_msgSend(CPBundle,"loadCibFile:externalNameTable:loadDelegate:",objj_msgSend(_b6,"pathForResource:",_b7),objj_msgSend(CPDictionary,"dictionaryWithObject:forKey:",CPApp,CPCibOwner),_b4);
436return YES;
437}
438return NO;
439}
440}),new objj_method(sel_getUid("cibDidFinishLoading:"),function(_b8,_b9,_ba){
441with(_b8){
442objj_msgSend(_b8,"performActions");
443}
444})]);