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
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 Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
On Tue, Mar 18, 2008 at 6:18 PM, Matthew Fulmer tapplek@gmail.com wrote:
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.
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
On Tue, Mar 18, 2008 at 9:54 PM, Rob Rothwell r.j.rothwell@gmail.com wrote:
On Tue, Mar 18, 2008 at 6:18 PM, Matthew Fulmer tapplek@gmail.com 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
On Tue, Mar 18, 2008 at 10:01:32PM -0400, Rob Rothwell wrote:
On Tue, Mar 18, 2008 at 9:54 PM, Rob Rothwell r.j.rothwell@gmail.com wrote:
On Tue, Mar 18, 2008 at 6:18 PM, Matthew Fulmer <tapplek@gmail.com> 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
On Tue, Mar 18, 2008 at 10:35 PM, Matthew Fulmer tapplek@gmail.com wrote:
Indeed. It is in MCVersionReader. Sorry
No problem...thanks for the example!
Rob
beginners@lists.squeakfoundation.org