Magma tutorial or examples

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Magma tutorial or examples

ina tube

I recently loaded Magma into my image to play around with, following the Getting Started Guide at:

http://wiki.squeak.org/squeak/2689

I looked around for some more documentation or code examples but was not able to find any.  Can someone point me to sample programs that illustrate how Magma is used?

Thanks,

Paul

PS:  There may be a few errors or ommissions in the Getting Started guide.  After creating the sample repository with,

  MagmaRepositoryController
    create: 'c:\myMagmaFolder'
    root: Dictionary new

the guide explains that in single user mode, one can use the new obejct store by executing

  myMagmaSession := MagmaSession openLocal: 'c:\myMagmaFolder\myRepository.magma'.
  myMagmaSession connectAs: 'chris'

I got a traceback when I tried the above.  I got it working only after trying

  myMagmaSession := MagmaSession openLocal: 'c:\myMagmaFolder'.
  myMagmaSession connectAs: 'chris'

Ie, the MagmaSession class>>openLocal: method takes a directory name rather than a particular '.magma' element.



--
_______________________________________________
Get your free email from http://mail.doramail.com

Powered by Outblaze
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Magma tutorial or examples

David Mitchell-10
http://www.gjallar.se/

On Nov 27, 2007 12:29 PM, ina tube <[hidden email]> wrote:

>
> I recently loaded Magma into my image to play around with, following the Getting Started Guide at:
>
> http://wiki.squeak.org/squeak/2689
>
> I looked around for some more documentation or code examples but was not able to find any.  Can someone point me to sample programs that illustrate how Magma is used?
>
> Thanks,
>
> Paul
>
> PS:  There may be a few errors or ommissions in the Getting Started guide.  After creating the sample repository with,
>
>   MagmaRepositoryController
>     create: 'c:\myMagmaFolder'
>     root: Dictionary new
>
> the guide explains that in single user mode, one can use the new obejct store by executing
>
>   myMagmaSession := MagmaSession openLocal: 'c:\myMagmaFolder\myRepository.magma'.
>   myMagmaSession connectAs: 'chris'
>
> I got a traceback when I tried the above.  I got it working only after trying
>
>   myMagmaSession := MagmaSession openLocal: 'c:\myMagmaFolder'.
>   myMagmaSession connectAs: 'chris'
>
> Ie, the MagmaSession class>>openLocal: method takes a directory name rather than a particular '.magma' element.
>
>
>
> --
> _______________________________________________
> Get your free email from http://mail.doramail.com
>
> Powered by Outblaze
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Magma tutorial or examples

ina tube
In reply to this post by ina tube
Is there a particular class or set of classes that I can look at for Magma examples?  That website has a good idea of information about their bug tracking system, but no particular illustration of using Magam that I can find.

Paul



> ----- Original Message -----
> From: "David Mitchell" <[hidden email]>
> To: "A friendly place to get answers to even the most basic questions about Squeak." <[hidden email]>
> Subject: Re: [Newbies] Magma tutorial or examples
> Date: Tue, 27 Nov 2007 13:37:24 -0600
>
>
> http://www.gjallar.se/
>


--
_______________________________________________
Get your free email from http://mail.doramail.com

Powered by Outblaze
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

How do I find out the maximum extent that a morph can be set to, without this impacting the current extent of its owner morph?

Alexandre Rousseau
Hi all

Question: How do I find out the maximum extent that a morph can be set to, without this impacting the current extent of its owner morph?
Context: trying to set the extent of a sticky note's summary label to the maximum possible width, and such that the note's window (isKindOf PasteUpMorph) will not be resized.

Thanks in advance
Alex

==
Alexandre Rousseau



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Magma tutorial or examples

David Mitchell-10
In reply to this post by ina tube
Download one of the Gjallar distros. There is one for windows with the
VM. If you're on something else, get your VM for your platform and
download the image.

It starts up and has scripts for building the Magma database.

If you are looking for examples of how the app interacts with Magma,
look at Q2Session.

Q2MockMagma session is also interesting as it shows all of the
messages that are stubbed out to _not_ connect to Magma.

OODBs in general and Magma in particular are pretty transparent, so
you don't see a lot of Magma code throughout the application.

Another example would be the work going into a magma tutorial for the
seaside tutorial:

http://lists.squeakfoundation.org/pipermail/magma/2007-November/000899.html



On Nov 27, 2007 4:45 PM, ina tube <[hidden email]> wrote:

> Is there a particular class or set of classes that I can look at for Magma examples?  That website has a good idea of information about their bug tracking system, but no particular illustration of using Magam that I can find.
>
> Paul
>
>
>
> > ----- Original Message -----
> > From: "David Mitchell" <[hidden email]>
> > To: "A friendly place to get answers to even the most basic questions about   Squeak." <[hidden email]>
> > Subject: Re: [Newbies] Magma tutorial or examples
> > Date: Tue, 27 Nov 2007 13:37:24 -0600
> >
> >
> > http://www.gjallar.se/
> >
>
>
> --
>
> _______________________________________________
> Get your free email from http://mail.doramail.com
>
> Powered by Outblaze
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Magma tutorial or examples

ina tube
In reply to this post by ina tube
Thanks!  This is very helpful.

Paul

> ----- Original Message -----
> From: "David Mitchell" <[hidden email]>
> To: "A friendly place to get answers to even the most basic questions about Squeak." <[hidden email]>
> Subject: Re: [Newbies] Magma tutorial or examples
> Date: Wed, 28 Nov 2007 10:56:39 -0600
>
>
> Download one of the Gjallar distros. There is one for windows with the
> VM. If you're on something else, get your VM for your platform and
> download the image.
>
> It starts up and has scripts for building the Magma database.
>
> If you are looking for examples of how the app interacts with Magma,
> look at Q2Session.
>
> Q2MockMagma session is also interesting as it shows all of the
> messages that are stubbed out to _not_ connect to Magma.
>
> OODBs in general and Magma in particular are pretty transparent, so
> you don't see a lot of Magma code throughout the application.
>
> Another example would be the work going into a magma tutorial for the
> seaside tutorial:
>
> http://lists.squeakfoundation.org/pipermail/magma/2007-November/000899.html
>


--
_______________________________________________
Get your free email from http://mail.doramail.com

Powered by Outblaze
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners