Daniel Carrera | 1 Apr 2003 01:16
Picon
Favicon

Re: GUI development under Ruby

On Tue, Apr 01, 2003 at 07:52:38AM +0900, jennyw wrote:
> I was wondering what people were using for GUI development. I've seen a 
> few posts talking about Tk and gtk2 ... I was wondering how easy this is 
> for someone relatively new to Ruby to jump into and if there were any 
> others.

The other big one is 'FXRuby' (http://fxruby.sourceforge.net/)
My personal favourite is gtk2.

#include<std_disclaimer.h>
#include<opinions.h>
#define  FLAMES   0

I would say that the following 3 are the main choices.  This is how I view 
them:

Tk
===
  Pro:	Easiest to use and learn.  Multi-platform.
  Con:	Somewhat ugly and not terribly powerful.

Gtk2
====
  Pro:	Modern, powerful and looks great.  Semi-multiplatform.
	Not hard to use, but there is more to learn than with Tk.
  Con:	The Windows port is a bit behind I think.

Fox
===
  Pro:	Modern, powerful and multi-platrofm.
(Continue reading)

gabriele renzi | 1 Apr 2003 01:19
Picon

Re: GUI development under Ruby

il Tue, 1 Apr 2003 07:52:38 +0900, jennyw <jennyw <at> dangerousideas.com>
ha scritto::

>I was wondering what people were using for GUI development. I've seen a 
>few posts talking about Tk and gtk2 ... I was wondering how easy this is 
>for someone relatively new to Ruby to jump into and if there were any 
>others.

You should not miss 
 - Fox (FXRuby) 
 - fltk  (ruby-fltk)

But you can get useful info right from here:
http://raa.ruby-lang.org/cat.rhtml?category_major=Library;category_minor=GUI

>I did take a look at FreeRIDE recently ... looks nice! I'm impressed 
>they're able to get an app. running under Mac OS X, Linux, and Windows 
>.. what was used for this?
>

Fox rox does'nt it ?

>Thanks!
>
>Jen

jennyw | 1 Apr 2003 01:40

Re: GUI development under Ruby

On Tue, Apr 01, 2003 at 08:19:21AM +0900, gabriele renzi wrote:
> >I did take a look at FreeRIDE recently ... looks nice! I'm impressed 
> >they're able to get an app. running under Mac OS X, Linux, and Windows 
> >.. what was used for this?
> 
> Fox rox does'nt it ?

Seems to! I looked at the Fox page, though, and it doesn't list Mac OS X 
as a platform it supports ... yet FreeRIDE has a screenshot running on 
OS X. How did they do that? Did they run it under X11 on the Mac?  I was 
actually hoping for something that could run on Aqua as well as Win32 
and X11.

Thanks!

Jen

Daniel Carrera | 1 Apr 2003 02:03
Picon
Favicon

Re: GUI development under Ruby

On Tue, Apr 01, 2003 at 08:40:41AM +0900, jennyw wrote:

> I was actually hoping for something that could run on Aqua as well as 
> Win32 and X11.
> 

I don't think that exists yet.  There is a project to port Gtk1 to Aqua.  
It's fairly close, but won't be done for a few months I think (and it's 
gtk1, not 2).

If you are going for something that looks native:

Ruby-GNOME2 looks native under Linux.
Ruby-Cocoa  looks native under 0S X
FXRuby looks sort of native under Windows (I think it looks fine).

--

-- 
Daniel Carrera
Graduate Teaching Assistant.  Math Dept.
University of Maryland.  (301) 405-5137
--
coadunate: coadunate (ko-AJ-uh-nit, -nayt) adjective
   United by growth; closely joined.

Clifford Heath | 1 Apr 2003 02:04

ASN.1 basic/distinguished encoding rules for Ruby?

Has anyone built a library for ASN.1's BER or DER for Ruby?
I can't find "ASN" in the RAA...

Peña, Botp | 1 Apr 2003 02:24

Re: Obtaining the Archive Attribute of a File on Windows Systems


> >>>
> >>> Is it possible to check the archive attribute of Windows
> >>> files using Ruby? Or, even better, is it possible to get a 
> >>> list of files that have active archive bits to then be able 
> >>> to copy or move to a backup location?
> 
> > You can do it using brute force:
> 
> > require 'find'
> 
> > Find.find( 'c:\temp' ) do | aFile |
> >   if  `attrib #{aFile}` =~ /^A/ 
> >     puts aFile
> >   end
> > end
> 
> > But it will (as far as I can see) not work on cygwin builds.
> 
> The command works in a Cygwin window.

and also on builds _without_ cygwin :-)
I'm using prag build on windows..

:botp

Jim Menard | 1 Apr 2003 02:25
Picon
Gravatar

RubyCocoa and addresses of pointers

Some methods in Objective-C require the address of a pointer, so the method
can fill in the value of the pointer. How do I do this in RubyCocoa?

As an example, here's some Objective-C code

    // fpDate is an IB outlet
    NSDateFormatter *dateFormatter = [fpDate formatter];
    NSCalendarDate *templateDate;
    BOOL conversionResult;
    NSString *error;
    BOOL conversionResult;

    conversionResult = [dateFormatter getObjectValue:&templateDate
					   forString:[fpDate stringValue]
				    errorDescription:&error];

getObjectValue:forString:errorDescription: takes two arguments that are
addresses of pointers. The method returns objects in those parameters.

Is there a way to do this in RubyCocoa?

Jim
--

-- 
Jim Menard, jimm <at> io.com, http://www.io.com/~jimm/
"SPOON!" -- The Tick's battle cry
"Not in the face!  Not in the face!" -- Arthur's battle cry

Jim Freeze | 1 Apr 2003 03:16
Favicon

Re: GUI development under Ruby

On Tuesday,  1 April 2003 at  8:40:41 +0900, jennyw wrote:
> Seems to! I looked at the Fox page, though, and it doesn't list Mac OS X 
> as a platform it supports ... yet FreeRIDE has a screenshot running on 
> OS X. How did they do that? Did they run it under X11 on the Mac?  I was 

Yes

--

-- 
Jim Freeze
----------
Some programming languages manage to absorb change, but withstand
progress.
		-- Epigrams in Programming, ACM SIGPLAN Sept. 1982

Gordon Love | 1 Apr 2003 03:39
Picon

FOX GUI / FXRuby tutorials

Are there any tutorial web-sites for making some introductory FOX 
GUIs using Ruby?
Cheers,
    Euan
xlucid <at> users(.remove this).sf.(antispam.)net

Yukihiro Matsumoto | 1 Apr 2003 03:44
Favicon
Gravatar

Re: Change to /.../.match("foo") behaviour in 1.6.8?

Hi,

In message "Change to /.../.match("foo") behaviour in 1.6.8?"
    on 03/03/31, Austin Ziegler <austin <at> halostatue.ca> writes:

|In 1.6.7 and 1.7, I had the following line work:
|
|      l, m1, m2 = /((?:\S+\s+){11})(.+)/.match(line)
|
|This meant that #match return worked like an array.

Put "*" before the expression, e.g.

	l, m1, m2 = */((?:\S+\s+){11})(.+)/.match(line)

							matz.


Gmane