prob with IO.popen

U

Une Bévue

if i do :

lines = IO.popen( "ls -alR /Users/yt/work/Ruby/IO")
lines.each { | line | puts line }

i get the expected output of $ ls -alR

however (on Mac OS X 10.4.11) the following :

cmd = IO.popen( "/usr/bin/nibtool -c MainMenu.nib" )
puts "|#{cmd.readlines}|"

gaves me nothing :[

however, using the terminal in command line :

$ nibtool -c MainMenu.nib

gave me :
------------------------------------------------------------------------
/* Classes */
Classes = {
IBClasses = (
{
ACTIONS = {
"about_win" = id;
[...]
"toggle_drawer" = id;
};
CLASS = AB2Html;
LANGUAGE = ObjC;
OUTLETS = {
"cancel_btn" = id;
[...]
"theme_cb" = id;
};
SUPERCLASS = NSObject;
},
{CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject;
}
);
IBVersion = 1;
}; /* End Classes */
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top