Can you package code with Monticello that needs a preamble and/or postscript, or do you have to use a changeset for that? Can you tell a package what other packages it needs to load and in what order?
As an example, I was trying to take the ODBC changeset and modify it so it doesn't replace the Timestamp class. However, it loads System Dictionary constants in a preamble, so I didn't know if you could put that in a Monticello package or not.
Finally, I wanted to try combining that with the ODBCEnh package just for kicks to see how that would work. Thanks,
Rob Rothwell
_______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On Tue, Mar 18, 2008 at 10:33:55AM -0400, Rob Rothwell wrote:
> Can you package code with Monticello that needs a preamble and/or > postscript, or do you have to use a changeset for that? Can you tell a > package what other packages it needs to load and in what order? > As an example, I was trying to take the ODBC changeset and modify it so it > doesn't replace the Timestamp class. However, it loads System Dictionary > constants in a preamble, so I didn't know if you could put that in a > Monticello package or not. Monticello runs the class-side initialize method of any new class it loads. That is where things like service registration, constant initialization, and other such one-time setup is done. See MCReader class>>#initialize for an example; this sets up MCReader as the drop-handler when .mcz files are dragged into the image. > _______________________________________________ > Beginners mailing list > [hidden email] > http://lists.squeakfoundation.org/mailman/listinfo/beginners -- Matthew Fulmer -- http://mtfulmer.wordpress.com/ _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On Tue, Mar 18, 2008 at 6:18 PM, Matthew Fulmer <[hidden email]> wrote:
Thanks...I didn't find that anywhere at http://www.wiresong.ca/Monticello/ (from which most of the Squeak by Example Monticello text came from, I think!).
Ahh...the simple things! Once again I missed "the obvious."
Rob
_______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On Tue, Mar 18, 2008 at 9:54 PM, Rob Rothwell <[hidden email]> wrote:
Although actually, in my image, there is no MCReader class>>#initialize method, but I'll play with it...! Rob
_______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On Tue, Mar 18, 2008 at 10:01:32PM -0400, Rob Rothwell wrote:
> On Tue, Mar 18, 2008 at 9:54 PM, Rob Rothwell <[hidden email]> > wrote: > > On Tue, Mar 18, 2008 at 6:18 PM, Matthew Fulmer <[hidden email]> > wrote: > > See MCReader class>>#initialize for an example; this sets up > MCReader as the drop-handler when .mcz files are dragged into > the image. > > Although actually, in my image, there is no MCReader class>>#initialize > method, but I'll play with it...! > Rob Indeed. It is in MCVersionReader. Sorry -- Matthew Fulmer -- http://mtfulmer.wordpress.com/ _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
On Tue, Mar 18, 2008 at 10:35 PM, Matthew Fulmer <[hidden email]> wrote:
No problem...thanks for the example! Rob _______________________________________________ Beginners mailing list [hidden email] http://lists.squeakfoundation.org/mailman/listinfo/beginners |
Free forum by Nabble | Edit this page |