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

/Frameworks/Debug/AppKit/browser.platform/CPFlashMovie.j

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 22 lines | 21 code | 1 blank | 0 comment | 0 complexity | b089eaf9819ae5a4a353d55fad8ba6c6 MD5 | raw file
 1I;21;Foundation/CPObject.jc;844;
 2{var the_class = objj_allocateClassPair(CPObject, "CPFlashMovie"),
 3meta_class = the_class.isa;class_addIvars(the_class, [new objj_ivar("_fileName")]);
 4objj_registerClassPair(the_class);
 5objj_addClassForBundle(the_class, objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
 6class_addMethods(the_class, [new objj_method(sel_getUid("initWithFile:"), function $CPFlashMovie__initWithFile_(self, _cmd, aFileName)
 7{ with(self)
 8{
 9    self = objj_msgSendSuper({ receiver:self, super_class:objj_getClass("CPObject") }, "init");
10    if (self)
11        _fileName = aFileName;
12    return self;
13}
14})]);
15class_addMethods(meta_class, [new objj_method(sel_getUid("flashMovieWithFile:"), function $CPFlashMovie__flashMovieWithFile_(self, _cmd, aFileName)
16{ with(self)
17{
18    return objj_msgSend(objj_msgSend(self, "alloc"), "initWithFile:", aFileName);
19}
20})]);
21}
22