[Pharo-project] An issue with Zinc-HTTP

2012-12-25 Thread Dennis Schetinin
Trying to load Zinc-HTTP, I encounter a problem: Zinc-HTTP package removes #asZnUrl and #asZnMimeType from String (added by Zinc-Resource-Meta-Core). I don't fully understand why it occurs. The workaround is straightforward: to add those methods manually after load. Best regards, Dennis Sche

Re: [Pharo-project] Is there a simple example of how to create a GUI form in Pharo or Squeak?

2012-12-25 Thread Ben Coman
First, pharo-users is a better forum for such questions. That said, I recently used Polymorph for the first time. I found Laurent Laffont's Pharocast [2] a good tutorial. [1] http://lists.gforge.inria.fr/mailman/listinfo/pharo-users [2] http://www.pharocasts.com/2011/02/pharo-gui-with-polymor

Re: [Pharo-project] on blockclosure currying

2012-12-25 Thread Sebastián Krynski
Esteban, thanks for your answer.. I think i need to dynamically create a block which accepts exactly n parameters , so that the new block would behave as expected. Is that possible ? Is that what you had in mind? 2012/12/25 Esteban A. Maringolo > You can use #valueWithArguments: or #valueWit

Re: [Pharo-project] on blockclosure currying

2012-12-25 Thread Esteban A. Maringolo
You can use #valueWithArguments: or #valueWithPossibleArgs: instead of using #value:value:value: numArgs instVar might be your friend in what you want to achieve. Regards, -- View this message in context: http://forum.world.st/on-blockclosure-currying-tp4660895p4660896.html Sent from the Phar

[Pharo-project] on blockclosure currying

2012-12-25 Thread Sebastián Krynski
Hey there, I' ve been thinking about possible implementations for adding curryfication to block closures. Here's how it would be used, following by the implementation. addBinary := [:p1 :p2 | p1 + p2] . add3 := addBinary curry: 3. add3 curry: 5. 8 BlockClosure >> curry: aParameter (numArgs =

Re: [Pharo-project] About morph layout

2012-12-25 Thread Stéphane Ducasse
I like this decomposition of a large interface into separate objects. Stef > > column := AlignmentMorph newColumn. > > column color: Color white. > column layout shrinkWrap. "v and h both" > > column border >width: 0; >color: Color black. > > column childLayout >inset: 1; >wra

Re: [Pharo-project] Is there a simple example of how to create a GUI form in Pharo or Squeak?

2012-12-25 Thread Fernando Olivero
Hi, two good sources of information on GUI building are http://www.pharocasts.com/2011/02/pharo-gui-with-polymorph.html?utm_source=BP_recent http://book.pharo-project.org/book/LanguageAndLibraries/GUI/?_s=yllsSvKBo5cvoj5u&_k=SfVzYouSPsm74NVf&_n&6 They're not that hard to find (if you are aware o