<div dir="ltr">Hi guys,<div><br></div><div>I see some libraries using WAFileMetadataLibrary subclasses. For example, Code Mirror. I have copied it's design, but have to manually create all the intermediate methods such as:</div><div><br></div><div><div>themesdarkCss</div><div><span style="white-space:pre">        </span>^ WAFileLibraryResource</div><div><span style="white-space:pre">               </span>filepath: 'themes/dark.css'</div><div><span style="white-space:pre">           </span>mimeType: (WAMimeType main: 'text' sub: 'css')</div><div><span style="white-space:pre">                </span>cacheDuration: (Duration days: 0 hours: 0 minutes: 30 seconds: 0)</div><div><span style="white-space:pre">             </span>contents: (GRDelayedSend receiver: self selector: #themedarkCssContent)</div><div><br></div><div><br></div><div>Aside from that, I also must keep a #fill kind of class side method where I autogenerate the contents for each file...something like this:</div><div><br></div><div><div>themes := basePath , 'themes/'.</div><div>self faAddFileAt:  themes, 'dark.css' selector: (#theme , #darkCssContent) asSymbol.</div></div><div><br></div><div><br></div><div>So....it's really a pain when I have to wrap a big library that has many images, javascript and css files split across different directories etc. </div><div><br></div><div>Is there a way to autogenerate this WAFileMetadataLibrary subclass with all methods created? Something like:</div><div><br></div><div>WAFileMetadataLibrary autogenerateFrom: ''/Users/mariano/myLibrary/' into: MyLibraryFilelibrary.<br></div><div><br></div><div>Thanks in advance, </div><div><br></div><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>