You can subscribe to this list here.
2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(3) |
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(1) |
Feb
(11) |
Mar
(9) |
Apr
(1) |
May
(5) |
Jun
(5) |
Jul
(4) |
Aug
(3) |
Sep
(15) |
Oct
(8) |
Nov
(9) |
Dec
(11) |
2004 |
Jan
(5) |
Feb
(2) |
Mar
(1) |
Apr
(3) |
May
(6) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(3) |
2005 |
Jan
(1) |
Feb
(7) |
Mar
(6) |
Apr
(36) |
May
(20) |
Jun
(42) |
Jul
(21) |
Aug
(12) |
Sep
(56) |
Oct
(5) |
Nov
(55) |
Dec
(53) |
2006 |
Jan
(43) |
Feb
(83) |
Mar
(98) |
Apr
(42) |
May
(68) |
Jun
(55) |
Jul
(50) |
Aug
(104) |
Sep
(13) |
Oct
(70) |
Nov
(37) |
Dec
(42) |
2007 |
Jan
(56) |
Feb
(18) |
Mar
(43) |
Apr
(80) |
May
(65) |
Jun
(149) |
Jul
(103) |
Aug
(71) |
Sep
(62) |
Oct
(67) |
Nov
(72) |
Dec
(63) |
2008 |
Jan
(64) |
Feb
(63) |
Mar
(31) |
Apr
(42) |
May
(71) |
Jun
(62) |
Jul
(37) |
Aug
(25) |
Sep
(5) |
Oct
(2) |
Nov
(7) |
Dec
(14) |
2009 |
Jan
(20) |
Feb
(15) |
Mar
(19) |
Apr
(8) |
May
(7) |
Jun
|
Jul
(37) |
Aug
(12) |
Sep
(19) |
Oct
(5) |
Nov
(1) |
Dec
(4) |
2010 |
Jan
(5) |
Feb
(24) |
Mar
(16) |
Apr
(9) |
May
(4) |
Jun
|
Jul
|
Aug
(6) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(5) |
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Eloy D. <elo...@gm...> - 2008-12-15 14:21:51
|
Hi Alli, Not sure if this helps you out or not, but if all you want to do is to open a new window with a specific URL you should use: NSWorkspace.sharedWorkspace.openURL() Eloy On Dec 15, 2008, at 2:08 PM, Allison Newman wrote: > Oh, never mind, I figured it out.... You have to add the object to > the application before modifying it's properties - apparently the > ScriptingBridge class of the object isn't really resolved until the > object is added to the application container. So this works: > > document_class = @safari.classForScriptingClass('document') > document = document_class.alloc.init > @safari.documents << document > document.URL = url > > > Alli > > > > On Monday, December 15, 2008, at 01:36PM, "Allison Newman" <dem...@ma... > > wrote: >> Hi everyone, >> >> I'm having a few problems scripting Safari from Ruby, and I'm >> wondering if anyone else has had any problems/found solutions. >> >> I'm trying to open a URL in Safari. My first attempt looked like >> this (please excuse any typos, I'm not on the computer that has the >> source code....) >> >> require 'osx/cocoa' >> include OSX >> >> OSX.require_framework 'ScriptingBridge' >> >> url = "http://www.blah.com/MyAccount.htm" >> >> @safari = >> SBApplication.applicationWithBundleIdentifier("com.apple.Safari") >> # so far, so good! >> >> # The following is no good, this gives me a document_class of >> SBProxyByClass >> document_class = @safari.classForScriptingClass('document') >> document = document_class.alloc.init >> document.URL = url >> @safari.documents << document >> >> # the following works, but only if Safari already has a page open - >> it changes this page to the new URL, which is not what I want to >> do, I want to open either a new window, or a new tab. It also >> fails if there is no document already open, as document is set to nil >> document = @safari.documents.last >> # document has a class of OSX::SafariDocument >> document.URL = url >> >> #The following does not work, again, the class isn't right... >> document = OSX::SafariDocument.alloc.init >> # document.class = SBProxyByClass >> document.URL = url >> @safari.documents << document >> >> >> So, I'm a little puzzled. Does anyone know how to do this properly? >> >> Alli >> >> ------------------------------------------------------------------------------ >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> Nevada. >> The future of the web can't happen without you. Join us at MIX09 >> to help >> pave the way to the Next Web now. Learn more and register at >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to > help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Allison N. <dem...@ma...> - 2008-12-15 13:09:14
|
Oh, never mind, I figured it out.... You have to add the object to the application before modifying it's properties - apparently the ScriptingBridge class of the object isn't really resolved until the object is added to the application container. So this works: document_class = @safari.classForScriptingClass('document') document = document_class.alloc.init @safari.documents << document document.URL = url Alli On Monday, December 15, 2008, at 01:36PM, "Allison Newman" <dem...@ma...> wrote: >Hi everyone, > >I'm having a few problems scripting Safari from Ruby, and I'm wondering if anyone else has had any problems/found solutions. > >I'm trying to open a URL in Safari. My first attempt looked like this (please excuse any typos, I'm not on the computer that has the source code....) > >require 'osx/cocoa' >include OSX > >OSX.require_framework 'ScriptingBridge' > >url = "http://www.blah.com/MyAccount.htm" > >@safari = SBApplication.applicationWithBundleIdentifier("com.apple.Safari") ># so far, so good! > ># The following is no good, this gives me a document_class of SBProxyByClass >document_class = @safari.classForScriptingClass('document') >document = document_class.alloc.init >document.URL = url >@safari.documents << document > ># the following works, but only if Safari already has a page open - it changes this page to the new URL, which is not what I want to do, I want to open either a new window, or a new tab. It also fails if there is no document already open, as document is set to nil >document = @safari.documents.last ># document has a class of OSX::SafariDocument >document.URL = url > >#The following does not work, again, the class isn't right... >document = OSX::SafariDocument.alloc.init ># document.class = SBProxyByClass >document.URL = url >@safari.documents << document > > >So, I'm a little puzzled. Does anyone know how to do this properly? > >Alli > >------------------------------------------------------------------------------ >SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. >The future of the web can't happen without you. Join us at MIX09 to help >pave the way to the Next Web now. Learn more and register at >http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >_______________________________________________ >Rubycocoa-talk mailing list >Rub...@li... >https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > |
From: Allison N. <dem...@ma...> - 2008-12-15 12:37:02
|
Hi everyone, I'm having a few problems scripting Safari from Ruby, and I'm wondering if anyone else has had any problems/found solutions. I'm trying to open a URL in Safari. My first attempt looked like this (please excuse any typos, I'm not on the computer that has the source code....) require 'osx/cocoa' include OSX OSX.require_framework 'ScriptingBridge' url = "http://www.blah.com/MyAccount.htm" @safari = SBApplication.applicationWithBundleIdentifier("com.apple.Safari") # so far, so good! # The following is no good, this gives me a document_class of SBProxyByClass document_class = @safari.classForScriptingClass('document') document = document_class.alloc.init document.URL = url @safari.documents << document # the following works, but only if Safari already has a page open - it changes this page to the new URL, which is not what I want to do, I want to open either a new window, or a new tab. It also fails if there is no document already open, as document is set to nil document = @safari.documents.last # document has a class of OSX::SafariDocument document.URL = url #The following does not work, again, the class isn't right... document = OSX::SafariDocument.alloc.init # document.class = SBProxyByClass document.URL = url @safari.documents << document So, I'm a little puzzled. Does anyone know how to do this properly? Alli |
From: Allison N. <dem...@ma...> - 2008-12-11 07:08:36
|
Hi Ric, like this: require 'osx/cocoa' p OSX::RUBYCOCOA_VERSION Alli Le 11 déc. 08 à 04:20, fc...@di... a écrit : > Greetings: > I've read that the latest version of 'RubyCocoa' is 0.13. > I'm running Leopard (OS 10.5.5). How do I determine my installed > RubyCocoa version? > > Ric. > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to > help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: <fc...@di...> - 2008-12-11 04:36:16
|
Greetings: I've read that the latest version of 'RubyCocoa' is 0.13. I'm running Leopard (OS 10.5.5). How do I determine my installed RubyCocoa version? Ric. |
From: Timothy M. <tmc...@gm...> - 2008-12-08 18:03:27
|
Ehrm, fairly new to that kind of thing. Care to explain how? ^_^; On Sun, Dec 7, 2008 at 10:58 PM, Allison Newman <dem...@ma...> wrote: > Tim, when I had that problem, the easiest solution that I found was to > remove the second installation of ruby from the system, keeping only the > official version. I think your problem now is that /usr/bin/irb is just > calling ruby, not /usr/bin/ruby. Try changing your $PATH to give preference > to the official version, and see if that works. > > HTH > > Alli > > Envoyé de mon iPhone > > Le 8 déc. 08 à 01:02, Timothy McDowell <tmc...@gm...> a écrit : > > /usr/bin/irb require 'osx/cocoa' > same error :( > > On Sat, Dec 6, 2008 at 11:39 PM, Laurent Sansonetti <<lsa...@ap...> > lsa...@ap...> wrote: > >> You do not seem to use the /usr/bin/ruby interpreter. The installer >> installs a version of RubyCocoa specially for the system version of >> Ruby that ships with the OS and it looks like you installed another >> version of Ruby in /usr/local and that you're using this one instead. >> Please check out your PATH environment variable, or call directly /usr/ >> bin/ruby. >> >> Laurent >> >> On Dec 6, 2008, at 8:46 PM, Timothy McDowell wrote: >> >> > I downloaded the 13.4.1 installer for 10.4 (the binary/dmg >> > installer) and ran/installed it. >> > When I tried "require 'osx/cocoa'" it spat out this error: >> > >> > require 'osx/cocoa' >> > LoadError: no such file to load -- osx/cocoa >> > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ >> > custom_require.rb:27:in `gem_original_require' >> > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ >> > custom_require.rb:27:in `require' >> > from (irb):3 >> > >> > I did some reading and found the full path, and tried: >> > >> > require '/Library/Frameworks/RubyCocoa.framework/Versions/A/ >> > Resources/ruby/osx/cocoa.rb' >> > LoadError: no such file to load -- osx/objc/cocoa.rb >> > from /Library/Frameworks/RubyCocoa.framework/Versions/A/ >> > Resources/ruby/osx/cocoa.rb:8:in `require' >> > from /Library/Frameworks/RubyCocoa.framework/Versions/A/ >> > Resources/ruby/osx/cocoa.rb:8 >> > from (irb):1:in `require' >> > from (irb):1 >> > >> > But that, as you can see, spat out errors for a require in THAT file >> > not being correct. Did some alias not get set right? Do I need to be >> > logged into an administrator account? >> > -- >> > --Timothy. >> > >> ------------------------------------------------------------------------------ >> > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> > Nevada. >> > The future of the web can't happen without you. Join us at MIX09 to >> > help >> > pave the way to the Next Web now. Learn more and register at >> > >> <http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________> >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________ >> > Rubycocoa-talk mailing list >> > <Rub...@li...> >> Rub...@li... >> > <https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk> >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> >> ------------------------------------------------------------------------------ >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> Nevada. >> The future of the web can't happen without you. Join us at MIX09 to help >> pave the way to the Next Web now. Learn more and register at >> <http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/> >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> <Rub...@li...> >> Rub...@li... >> <https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk> >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> > > > > -- > --Brains. > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > -- --Brains. |
From: Allison N. <dem...@ma...> - 2008-12-08 05:58:23
|
Tim, when I had that problem, the easiest solution that I found was to remove the second installation of ruby from the system, keeping only the official version. I think your problem now is that /usr/bin/irb is just calling ruby, not /usr/bin/ruby. Try changing your $PATH to give preference to the official version, and see if that works. HTH Alli Envoyé de mon iPhone Le 8 déc. 08 à 01:02, Timothy McDowell <tmc...@gm...> a écrit : > /usr/bin/irb > require 'osx/cocoa' > same error :( > > On Sat, Dec 6, 2008 at 11:39 PM, Laurent Sansonetti <lsa...@ap... > > wrote: > You do not seem to use the /usr/bin/ruby interpreter. The installer > installs a version of RubyCocoa specially for the system version of > Ruby that ships with the OS and it looks like you installed another > version of Ruby in /usr/local and that you're using this one instead. > Please check out your PATH environment variable, or call directly / > usr/ > bin/ruby. > > Laurent > > On Dec 6, 2008, at 8:46 PM, Timothy McDowell wrote: > > > I downloaded the 13.4.1 installer for 10.4 (the binary/dmg > > installer) and ran/installed it. > > When I tried "require 'osx/cocoa'" it spat out this error: > > > > require 'osx/cocoa' > > LoadError: no such file to load -- osx/cocoa > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > > custom_require.rb:27:in `gem_original_require' > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > > custom_require.rb:27:in `require' > > from (irb):3 > > > > I did some reading and found the full path, and tried: > > > > require '/Library/Frameworks/RubyCocoa.framework/Versions/A/ > > Resources/ruby/osx/cocoa.rb' > > LoadError: no such file to load -- osx/objc/cocoa.rb > > from /Library/Frameworks/RubyCocoa.framework/Versions/A/ > > Resources/ruby/osx/cocoa.rb:8:in `require' > > from /Library/Frameworks/RubyCocoa.framework/Versions/A/ > > Resources/ruby/osx/cocoa.rb:8 > > from (irb):1:in `require' > > from (irb):1 > > > > But that, as you can see, spat out errors for a require in THAT file > > not being correct. Did some alias not get set right? Do I need to be > > logged into an administrator account? > > -- > > --Timothy. > > > --- > --- > --- > --------------------------------------------------------------------- > > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > > Nevada. > > The future of the web can't happen without you. Join us at MIX09 to > > help > > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > --- > --- > --- > --------------------------------------------------------------------- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to > help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > > -- > --Brains. > --- > --- > --- > --------------------------------------------------------------------- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to > help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Timothy M. <tmc...@gm...> - 2008-12-08 00:02:35
|
/usr/bin/irb require 'osx/cocoa' same error :( On Sat, Dec 6, 2008 at 11:39 PM, Laurent Sansonetti <lsa...@ap...>wrote: > You do not seem to use the /usr/bin/ruby interpreter. The installer > installs a version of RubyCocoa specially for the system version of > Ruby that ships with the OS and it looks like you installed another > version of Ruby in /usr/local and that you're using this one instead. > Please check out your PATH environment variable, or call directly /usr/ > bin/ruby. > > Laurent > > On Dec 6, 2008, at 8:46 PM, Timothy McDowell wrote: > > > I downloaded the 13.4.1 installer for 10.4 (the binary/dmg > > installer) and ran/installed it. > > When I tried "require 'osx/cocoa'" it spat out this error: > > > > require 'osx/cocoa' > > LoadError: no such file to load -- osx/cocoa > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > > custom_require.rb:27:in `gem_original_require' > > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > > custom_require.rb:27:in `require' > > from (irb):3 > > > > I did some reading and found the full path, and tried: > > > > require '/Library/Frameworks/RubyCocoa.framework/Versions/A/ > > Resources/ruby/osx/cocoa.rb' > > LoadError: no such file to load -- osx/objc/cocoa.rb > > from /Library/Frameworks/RubyCocoa.framework/Versions/A/ > > Resources/ruby/osx/cocoa.rb:8:in `require' > > from /Library/Frameworks/RubyCocoa.framework/Versions/A/ > > Resources/ruby/osx/cocoa.rb:8 > > from (irb):1:in `require' > > from (irb):1 > > > > But that, as you can see, spat out errors for a require in THAT file > > not being correct. Did some alias not get set right? Do I need to be > > logged into an administrator account? > > -- > > --Timothy. > > > ------------------------------------------------------------------------------ > > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > > Nevada. > > The future of the web can't happen without you. Join us at MIX09 to > > help > > pave the way to the Next Web now. Learn more and register at > > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > -- --Brains. |
From: Laurent S. <lsa...@ap...> - 2008-12-07 06:39:47
|
You do not seem to use the /usr/bin/ruby interpreter. The installer installs a version of RubyCocoa specially for the system version of Ruby that ships with the OS and it looks like you installed another version of Ruby in /usr/local and that you're using this one instead. Please check out your PATH environment variable, or call directly /usr/ bin/ruby. Laurent On Dec 6, 2008, at 8:46 PM, Timothy McDowell wrote: > I downloaded the 13.4.1 installer for 10.4 (the binary/dmg > installer) and ran/installed it. > When I tried "require 'osx/cocoa'" it spat out this error: > > require 'osx/cocoa' > LoadError: no such file to load -- osx/cocoa > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:27:in `gem_original_require' > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:27:in `require' > from (irb):3 > > I did some reading and found the full path, and tried: > > require '/Library/Frameworks/RubyCocoa.framework/Versions/A/ > Resources/ruby/osx/cocoa.rb' > LoadError: no such file to load -- osx/objc/cocoa.rb > from /Library/Frameworks/RubyCocoa.framework/Versions/A/ > Resources/ruby/osx/cocoa.rb:8:in `require' > from /Library/Frameworks/RubyCocoa.framework/Versions/A/ > Resources/ruby/osx/cocoa.rb:8 > from (irb):1:in `require' > from (irb):1 > > But that, as you can see, spat out errors for a require in THAT file > not being correct. Did some alias not get set right? Do I need to be > logged into an administrator account? > -- > --Timothy. > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to > help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Timothy M. <tmc...@gm...> - 2008-12-07 04:46:44
|
I downloaded the 13.4.1 installer for 10.4 (the binary/dmg installer) and ran/installed it. When I tried "require 'osx/cocoa'" it spat out this error: require 'osx/cocoa' LoadError: no such file to load -- osx/cocoa from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from (irb):3 I did some reading and found the full path, and tried: require '/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/cocoa.rb' LoadError: no such file to load -- osx/objc/cocoa.rb from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/cocoa.rb:8:in `require' from /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/cocoa.rb:8 from (irb):1:in `require' from (irb):1 But that, as you can see, spat out errors for a require in THAT file not being correct. Did some alias not get set right? Do I need to be logged into an administrator account? -- --Timothy. |
From: Rich M. <rd...@cf...> - 2008-12-06 22:41:58
|
Talks on both MacRuby and HotCocoa are available online: http://rubyconf2008.confreaks.com/macruby-ruby-for-your-mac.html http://rubyconf2008.confreaks.com/os-x-application-development-with-hotcocoa.html However, these will have to suffice for the moment, as Laurent has had to cancel his talk at the SF Ruby Meetup: http://www.meetup.com/sfruby/calendar/8841115/ -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rd...@cf... http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development |
From: Eloy D. <elo...@gm...> - 2008-12-03 19:32:09
|
Hi, Don't know if I ever posted here about this RubyCocoa utility, but will do now so people know RC is still in use! :) Today we released v1.2 of our preference pane for Passenger (mod_rails): http://www.fngtps.com/2008/12/passenger-preference-pane-v1-2 Cheers, Eloy |
From: Jacob W. <jac...@gm...> - 2008-11-27 08:14:17
|
Ok, thanks for letting me know. /Jacob On 24 nov 2008, at 01.21, Laurent Sansonetti wrote: > # I don't know why it does not work anymore, last time I tried it > (about a year ago) it was working. Maybe something changed in the Ruby > runtime or RubyCocoa that breaks it. > > MacRuby may have a similar functionality in the near future. |
From: Rich M. <r.d...@gm...> - 2008-11-26 21:57:51
|
FYI... Laurent Sansonetti of Apple will reprise his RubyConf 2008 talk on MacRuby, a version of Ruby 1.9 that makes convenient and efficient use of Mac OS X core technologies such as the Objective-C common runtime and garbage collector, and the CoreFoundation framework. -- http://www.meetup.com/sfruby/calendar/8841115/ -r P.S. I'm collecting names of folks who would like to attend a Bay Area MacRuby hackfest (aimed at app developers). Drop me a line if you're interested... -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rd...@cf... http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development |
From: Axel M. R. <rub...@ro...> - 2008-11-24 14:36:39
|
Excerpt: It seems the implementation of string.to_ns is not correct for some strings or situations, and to_nsstring works better. Explanation: I have come upon a problem which has been bugging me for days. I've written a small code example, and that works perfectly, but my main code keeps crashing. Let me explain. I have some code which has worked for months, but after the result text got bigger, suddenly stopped working. I've put a lot of debug output in it: # replaceText is a new, highly recursive function ftext = replaceText(self.mainText,loopStack) puts "Finished substitutions on Template" p ftext.class p ftext.length joepie= ftext.to_ns p joepie.class p joepie.length self.mainText = joepie This program doesn't convert the ruby string to NSString, but instead returns nil. The output of this is: Finished substitutions on Template String 43334 NilClass 2008-11-23 23:40:01.301 Telan[8971:10b] TLAppController#genereerPlanning: NoMethodError: undefined method `length' for nil:NilClass As I explained, my small code example works flawlessly with strings up till 1000000 chars, so that wasn't the problem. Maybe it's a memory problem? After some more head scratching, I noticed another to_ns method: to_nsstring, now deprecated. However, this method works fine! ftext = replaceText(self.mainText,loopStack) puts "Finished substitutions on Template" p ftext.class p ftext.length joepie= ftext.to_nsstring p joepie.class p joepie.length self.mainText = joepie The output of this is (correctly): Finished substitutions on Template String 43334 /Users/axel/Develop/svn/telan/TelanRuby/build/Debug/Telan.app/Contents/Resources/TLRTFParse.rb:120:in `replaceTemplate': to_nsstring is now deprecated and its use is discouraged, please use to_ns instead. OSX::NSCFString 43333 "TLRTFParse entering observeValueForKeyPath mainText" So, it seems the method implementation of string.to_ns is different from string.to_nsstring, but the method of to_nsstring is less buggy than the newer to_ns. I am not a ruby wizard, and have no idea how to solve this problem correctly. As I assume a memory issue, is there a way to 'flush' the ruby garbage collector, as you would do with NSAutoreleasePools? Or is there a way to trace into the ruby interpreter to see where the to_ns method fails? Anyone here on the list who can help me investigate and debug this thing? thanks Axel -- _________________________ Axel Roest axelloroestello@{AIM/MSN} - Skype:axellofono - XOIP: 084-8749988 |
From: Laurent S. <lau...@gm...> - 2008-11-24 00:21:19
|
RubyInject was written as a proof of concept and is not intended to be used for any real work. It's a nice hack, though, but it does lots of dark magic to be considered stable, and the thread-safeness problems of Ruby 1.8 do not facilitate the situation. # I don't know why it does not work anymore, last time I tried it (about a year ago) it was working. Maybe something changed in the Ruby runtime or RubyCocoa that breaks it. MacRuby may have a similar functionality in the near future. Laurent On Sun, Nov 23, 2008 at 3:47 PM, Tim Perrett <he...@ti...> wrote: > Eloy must be away - he hasn't been online for some time (that I've seen!) > > I have a feeling RubyInject is no longer used... Again, you'd need to check > with Eloy et al that know the internals better but I have a feeling that's > the case. > > Cheers, Tim > > > On 23/11/2008 23:05, "Axel M. Roest" <rub...@ro...> wrote: > >> At 17:25 +0100 20-11-2008, Jacob Wallström wrote: >>> Hi, >>> >>> Is anybody using RubyInject[1]? It just hangs when I try to inject >>> into TextEdit on Leopard 10.5.5. >> >> Hi Jacob, >> it seems the list is a bit dead. Anyone knows where everyone has >> gone? To a macruby list or something? >> >> And sorry no, I have never used RubyInject.. >> >> Axel > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Tim P. <he...@ti...> - 2008-11-24 00:08:25
|
Eloy must be away - he hasn't been online for some time (that I've seen!) I have a feeling RubyInject is no longer used... Again, you'd need to check with Eloy et al that know the internals better but I have a feeling that's the case. Cheers, Tim On 23/11/2008 23:05, "Axel M. Roest" <rub...@ro...> wrote: > At 17:25 +0100 20-11-2008, Jacob Wallström wrote: >> Hi, >> >> Is anybody using RubyInject[1]? It just hangs when I try to inject >> into TextEdit on Leopard 10.5.5. > > Hi Jacob, > it seems the list is a bit dead. Anyone knows where everyone has > gone? To a macruby list or something? > > And sorry no, I have never used RubyInject.. > > Axel |
From: Axel M. R. <rub...@ro...> - 2008-11-23 23:23:08
|
At 17:25 +0100 20-11-2008, Jacob Wallström wrote: >Hi, > >Is anybody using RubyInject[1]? It just hangs when I try to inject >into TextEdit on Leopard 10.5.5. Hi Jacob, it seems the list is a bit dead. Anyone knows where everyone has gone? To a macruby list or something? And sorry no, I have never used RubyInject.. Axel -- _________________________ Axel Roest axelloroestello@{AIM/MSN} - Skype:axellofono - XOIP: 084-8749988 |
From: Jacob W. <jac...@gh...> - 2008-11-20 16:26:09
|
Hi, Is anybody using RubyInject[1]? It just hangs when I try to inject into TextEdit on Leopard 10.5.5. Best regards, Jacob Wallström |
From: Rich M. <r.d...@gm...> - 2008-10-21 17:15:53
|
I'd like to know how many folks would be interested in MacRuby HackFests in the San Francisco Bay Area? If you think you'd be likely to attend, please respond to _me_ (I'll post a summary). -r P.S. For those of you who don't know about MacRuby: MacRuby is a version of Ruby 1.9, ported to run directly on top of Mac OS X core technologies such as the Objective-C common runtime and garbage collector, and the CoreFoundation framework. While still a work in progress, it is the goal of MacRuby to enable the creation of full-fledged Mac OS X applications which do not sacrifice performance in order to enjoy the benefits of using Ruby. -- http://www.macruby.org/trac/wiki/MacRuby -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rd...@cf... http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development |
From: Rich M. <rd...@cf...> - 2008-10-21 07:59:22
|
I'd like to know how many folks would be interested in MacRuby HackFests in the San Francisco Bay Area? If you think you'd be likely to attend, please respond to _me_ (I'll post a summary). -r P.S. For those of you who don't know about MacRuby: MacRuby is a version of Ruby 1.9, ported to run directly on top of Mac OS X core technologies such as the Objective-C common runtime and garbage collector, and the CoreFoundation framework. While still a work in progress, it is the goal of MacRuby to enable the creation of full-fledged Mac OS X applications which do not sacrifice performance in order to enjoy the benefits of using Ruby. -- http://www.macruby.org/trac/wiki/MacRuby -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rd...@cf... http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development |
From: Brian M. <ma...@ka...> - 2008-09-23 22:11:55
|
Found the problem. I had created the object in IB by dragging in an NSObject and changing its class. You have to drag in an NSArrayController and change its class. On Sep 23, 2008, at 3:13 PM, Brian Marick wrote: > I have an app that works correctly when a table column is bound to an > NSArrayController. Now suppose I subclass NSArrayController like this: > > class MyController < OSX::NSArrayController > end > > If I switch the column's binding to MyController, leaving everything > else the same, the bindings don't work in various interesting ways. > > I suspect that (1) something - IB? NSTableColumn? the data cell - > knows the kind of thing it's bound to and adjusts its behavior > accordingly, and (2) doesn't understand MyController's superclass. > > Could that be correct? If so, how do I get around the problem? If not, > what's the real problem? > > ----- > Brian Marick, independent consultant > Mostly on agile methods with a testing slant > www.exampler.com, www.exampler.com/blog, www.twitter.com/marick > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Brian M. <ma...@ex...> - 2008-09-23 20:42:15
|
I have an app that works correctly when a table column is bound to an NSArrayController. Now suppose I subclass NSArrayController like this: class MyController < OSX::NSArrayController end If I switch the column's binding to MyController, leaving everything else the same, the bindings don't work in various interesting ways. I suspect that (1) something - IB? NSTableColumn? the data cell - knows the kind of thing it's bound to and adjusts its behavior accordingly, and (2) doesn't understand MyController's superclass. Could that be correct? If so, how do I get around the problem? If not, what's the real problem? ----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick |
From: Brian M. <ma...@ex...> - 2008-09-11 03:52:19
|
I'm making my own NSFormatter subclass. It defines isPartialStringValid:newEditingString:errorDescription:, which returns a BOOL (and also takes two ObjcPtr arguments). The symptom is that the window (a preference panel) disappears after repeated calls to the method (repeated keypresses in the text box the formatter formats). The application doesn't crash. The window is loaded from its own nib. It happens if the method returns true/false (The real literals, not, say, nil for falseness.) It happens if the method returns fixnums 0/1. Adding a to_ns to the return value doesn't make a difference. The particular sequence of characters that causes the crash changes if you put NSLog statements in the method - so it's like something's scribbling over memory. Some NSLog statements make the problem (appear to) go away. Here's what the method looks like: def isPartialStringValid_newEditingString_errorDescription(s, new_s, errdesc) # NSLog s.inspect matcher = Regexp.new('^'+s.to_ruby.downcase) val = matcher =~ 'yes' || matcher =~ 'no' val = (val ? 1 : 0).to_ns # val = (!!val).to_ns # NSLog val.inspect # NSLog "#{val.class} #{val.inspect}" val end Ideas? I'm running 0.13.1. ----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick |
From: Keith D. <kei...@go...> - 2008-09-07 13:30:55
|
I'm writing a hybrid Objective-C/Ruby framework and I need to know where I should call RBBundleInit() to ensure the Ruby classes are loaded. I tried calling it in an initialization function specified by INIT_ROUTINE which seemed logical but is leading to problems when I try to run gen_bridge_metadata. The framework I'm working on is a subumbrella and it contains Ruby code dependent on superclasses contained in the umbrella framework. Loading the framework without the parent causes require errors since the load path hasn't been patched. Is there another place I can call RBBundleInit() that won't be triggered by gen_bridge_metadata or will I be forced to generate the file by hand? Thanks, Keith |