logo       

Re: Code Packaging Questions: msg#00126

lang.smalltalk.squeak.beginners

Subject: Re: Code Packaging Questions

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@xxxxxxxxxxxxxxxxxxxxxxxxxx
> http://lists.squeakfoundation.org/mailman/listinfo/beginners


--
Matthew Fulmer -- http://mtfulmer.wordpress.com/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise