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: kimura w. <ki...@us...> - 2005-03-26 09:18:18
|
RubyCocoa 0.4.1 was released! http://rubycocoa.sourceforge.net/ (The web site have been moved from http://www.fobj.com/rubycocoa/) The '.pkg' binary packages are available for Mac OS X 10.3/10.2. All of framework, library, documents, samples and Xcode/ProjectBuilder templates are contained in the package. These items will be installed into the appropriate place. It is available to start of RubyCocoa programming or use of RubyCocoa application immediately. == Changes from 0.4.0 * enable bundling RubyCocoa.framework within an application bundle Change a build configration of RubyCocoa.framework project, to execute a RubyCocoa application on the environment which is not installed RubyCocoa. It allows that RubyCocoa application itself bundles with RubyCocoa.framework. * Mac OS X 10.3 and Xcode supported == What's RubyCocoa? RubyCocoa is a Mac OS X framework that allows Cocoa programming in the Object-Oriented Scripting Language Ruby. RubyCocoa allows writing a Cocoa application in Ruby. It allows creating and using a Cocoa object in a Ruby script. In Cocoa application, mixture of program written by both Ruby and Objective-C is possible. Some cases using RubyCocoa: * Exploration of a Cocoa object's feature with 'irb' interactively * Prototyping of a Cocoa application * Cocoa application that include good feature of Ruby and Objective-C * Wrapping Mac OS X native GUI for Ruby script |
From: kimura w. <ki...@us...> - 2005-02-06 01:10:38
|
Hi, I wrote class browser for RubyCocoa. This application has NSOutlineView. In datasource.rb, ClassTreeDataSource and ModuleTreeDataSource implements Protocol NSOutlineViewDatasource. http://homepage.mac.com/kimuraw/archive/CocoaRBBR.dmg (61KB) >I am however getting an error: > >RubyRaiseMan.app/Contents/Resources/MyDocument.rb:68:in `initialize': >uninitialized constant Node at MyDocument (NameError) > This message means class 'Node' is undefined in your application. |
From: mrpotatohead <mrp...@le...> - 2005-02-05 11:57:26
|
I have done some digging and I am converting an example of a Obj-C NSOutlineView to RubyCocoa this is what I have so far: #### start data source for outline view ###### # Must implement data source for outline view # outlineView:numberOfChildrenOfItem: # outlineView:isItemExpandable: # outlineView:child:ofItem: # outlineView:objectValueForTableColumn:byItem: ############################################## def initialize; super; @rootNode = Node.new self; end def outlineView_numberOfChildrenOfItem(outView, item) outView.size? end def outlineView_isItemExpandable(outView, item) return item.empty? end def outlineView_child_ofItem(outView, child, item) if item.nil? @rootNode.childAtIndex(index) else @item.childAtIndex(index) end end def outlineView_objectValueForTableColumn_byItem(outView, item) item.keyValue('title') end ############################################## I am however getting an error: RubyRaiseMan.app/Contents/Resources/MyDocument.rb:68:in `initialize': uninitialized constant Node at MyDocument (NameError) I am new to Ruby and to Cocoa so this is very hard and would love any help people may have for me. MrPotatoHead On 05/02/2005, at 4:45 PM, mrpotatohead wrote: > More exactly I would like examples of the correct way of creating a > data source methods for my nsoutlineview. > > Thanks > > MrPotatoHead > > > On 05/02/2005, at 4:31 PM, mrpotatohead wrote: > >> Hi - I am looking for a nsoutlineview example for rubycocoa. >> >> If anyone has this can the post it - >> >> Much appreciated >> >> MrPotatoHead >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: mrpotatohead <mrp...@le...> - 2005-02-05 05:45:39
|
More exactly I would like examples of the correct way of creating a data source methods for my nsoutlineview. Thanks MrPotatoHead On 05/02/2005, at 4:31 PM, mrpotatohead wrote: > Hi - I am looking for a nsoutlineview example for rubycocoa. > > If anyone has this can the post it - > > Much appreciated > > MrPotatoHead > |
From: mrpotatohead <mrp...@le...> - 2005-02-05 05:31:31
|
Hi - I am looking for a nsoutlineview example for rubycocoa. If anyone has this can the post it - Much appreciated MrPotatoHead |
From: mrpotatohead <mrp...@le...> - 2005-02-04 04:53:39
|
Hi - I am extending RubyRaiseMan for fun and I noticed that RubyRaiseMan=20 will crash if your try to access an NSArchive file if their are more=20 then two rows of NSTableView data in that file one is fine two will=20 crash RubyRaiseMan. Now I have extended RubyRaiseMan by adding another NStableView however=20= now it crashes even if their is only one row of data. The code executing is very simple - but I am very new to rubycocoa - This method loads data from a binary archive which was create by Cocoa=20= using NSArchive and now will be unarchives using NSUnarchiver.. =A0 Question is Marshal a ruby method and if yes what does it do? =A0 The problem is as soon as I open such an archive my application crashes Here is the code as far as I can see: =A0 ########################## def dataRepresentationOfType (type) @tableView.deselectAll(nil) dumped_data =3D Marshal.dump @employees return NSArchiver.archivedDataWithRootObject(dumped_data) end def loadDataRepresentation_ofType (data, type) dumped_data =3D NSUnarchiver.unarchiveObjectWithData(data) @employees =3D Marshal.load(dumped_data.to_s) updateChangeCount(NSChangeCleared) update_ui return true end ########################## IS this a bug in RubyCocoa or RubyRaiseMan and has anyone seen this=20 before? Thanks MrPotatoHead= |
From: mrpotatohead <mrp...@le...> - 2005-02-01 02:21:38
|
Hi I have installed rubycocoa 0.4 on 10.3.7 with Xcode 1.5 and I am no longer able to get a blank rubycocoa project in the Xcode project menu. Is this a bug? As I a was able in the past to access to it in pre Xcode 1.5 installs. MrPotatoHead |
From: mrpotatohead <mrp...@le...> - 2005-02-01 02:18:44
|
Hi I would like to know what database abstraction layer are people with using with rubycocoa - I need data persistence and I am looking at my options of which Rails Active Record- a pure ruby database abstraction layer versus the upcoming Tiger Core Data. Will rubycocoa work with core data? If yes how is it going - With in the bounds of your NDA, please explain. Has anyone used Rails Active Record with rubycocoa? What other frameworks are people using? Is their code examples for either rubycoca with Rails Active Record and or Core Data? Can anyone offer me a comparison for me? MrPotatoHead |
From: FUJIMOTO H. <hi...@us...> - 2005-01-19 23:00:23
|
Hi, I got a mail ; is it possible to make a plugin for Quicksilver by Ruby (with RubyCocoa)? Is there someone writing the plugin, and interesting one? The follows is snip of the mail: -- FUJIMOTO Hisa ------------------------------------------ I am enjoying your RubyCocoa. It is my first Mac programming experience, though I am also using FScript. Thank you for doing such a good job on it! I would like to make a plugin for Quicksilver http://quicksilver.blacktree.com/ . They use a standard plugin architecture (see http://quicksilver.blacktree.com/docs/?page=Quicksilver+Development ). Plugins can be written in ObjectiveC, or in Python using PyObjC http://quicksilver.blacktree.com/docs/?page=PyObjC+PlugIns I thought that Ruby might be used to make these plugins. If Python can be used, why not Ruby? But I don't know if that is possible. They use arrays in the plist to specify handlers. The values of these entries are class names, so I guess that they call the code dynamically. They have an ObjectiveC file in the Python plugins that defines a subclass of NSBundle with a unique name. This subclass overrides -(Class)classNamed:(NSString*)name to do the lookup of Python classes. Then they have another class with a +(void)load method that gets the NSBundle object for the plugin and changes its class to that of the NSBundle subclass. Is this the way that Ruby could make plugins, or is there a better way? |
From: Ed S. <eh...@po...> - 2004-12-13 17:14:48
|
On Tue, Dec 14, 2004 at 01:20:05AM +0900, kimura wataru wrote: > Please config ruby with "--enable-shared" option and re-install ruby. Yes, I can require "osx/cocoa" now :) Many thanks. //Ed |
From: kimura w. <ki...@us...> - 2004-12-13 16:20:36
|
>ink:~/Projects/rubycocoa-panther/tests ed$ ruby testall.rb >tc_nsattributedstring.rb >/usr/local/lib/ruby/site_ruby/1.8/osx/cocoa.rb:12:in `require': No such >file to load -- osx/objc/cocoa (LoadError) > from /usr/local/lib/ruby/site_ruby/1.8/osx/cocoa.rb:12 > from ./tc_nsattributedstring.rb:12:in `require' > from ./tc_nsattributedstring.rb:12 > from testall.rb:6:in `require' > from testall.rb:6 > from testall.rb:3:in `each' > from testall.rb:3 > Please config ruby with "--enable-shared" option and re-install ruby. http://www.fobj.com/rubycocoa/w.en/FAQ.html We've not solved this probrem. |
From: Ed S. <eh...@po...> - 2004-12-12 05:51:39
|
I followed the instructions for checking out the branch-devel-panther and: ruby install.rb config ruby install.rb setup ruby install.rb install All of which went smooth. Only problem is when I execute the tests afterwards in the tests dir I get the following output. ink:~/Projects/rubycocoa-panther/tests ed$ ruby testall.rb tc_nsattributedstring.rb /usr/local/lib/ruby/site_ruby/1.8/osx/cocoa.rb:12:in `require': No such file to load -- osx/objc/cocoa (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/osx/cocoa.rb:12 from ./tc_nsattributedstring.rb:12:in `require' from ./tc_nsattributedstring.rb:12 from testall.rb:6:in `require' from testall.rb:6 from testall.rb:3:in `each' from testall.rb:3 Is there something I can do to remedy this situation, or is the panther branch not ready for use yet? //Ed -- Ed Summers aim: inkdroid web: http://www.inkdroid.org I wish to God these calculations had been executed by steam! [Charles Babbage] |
From: John L. <jo...@jo...> - 2004-10-17 07:24:35
|
I've been doing quite a bit of development with ruby-cocoa, and completely enjoying the experience! However, I'm having difficulty dealing with the Cocoa structures like NSRect, NSRange, and so on. I know there are Ruby classes to manage these, and they generally work fine. But I find that I cannot pass those objects directly to the Cocoa methods that use them; instead, I must call #to_a. For example: range = self.selectedRange # at this point, range is an NSRange object textStorage.removeAttribute(OSX.NSKernAttributeName, :range, range.to_a) # <-- .to_a needed here! The same thing seems to be true with NSRect, and probably with any struct-based "object" (I realize these aren't first-class objects). Tonight, I ran into a related problem: NSLayoutManager's -lineFragmentRectForGlyphAtIndex:effectiveRange: method needs a *pointer* to an NSRange struct. I tried many possibilities, and finally ended up with this: # set up a dummy range to have somewhere to store the actual range range = [0,0].pack('II') rect = layoutManager.lineFragmentRectForGlyphAtIndex(i, :effectiveRange, range) range = NSRange.new(range.unpack('II')) This seems neither elegant nor portable, although it does work. Is there a better way to do this? PS: I have a sense of deja vu when using Ruby with Cocoa. Back in the mid-1980s, I programmed classic Mac OS (5? 6?) using Think C. All the Apple reference material was in Pascal, so I got to be pretty good at *reading* Pascal, but no good at writing it. I feel much the same nowadays: I can't write very good Obj-C programs, but I can read enough of it to translate it to Ruby. :) -- John Labovitz Consulting, LLC http://mac.johnlabovitz.com jo...@jo... AIM/iChat: jslabovitz +1 503.949.3492 |
From: Stephen S. <sst...@ma...> - 2004-10-06 18:05:25
|
Thank you! That was the key. I had not installed the older compilers. Up and running! Thanks to everyone who was kind enough to help me get this going. Steve On Oct 6, 2004, at 11:45 AM, kimura wataru wrote: > >> [Session started at 2004-10-05 21:45:28 -0400.] >> /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/ >> objc/oc_import.rb:22:in `module_eval': undefined method >> `NSClassFromString' for OSX:Module (NoMethodError) > > RubyCocoa requires /usr/bin/cpp3 in 'ruby install.rb config'. If your > Mac doesn't have /usr/bin/cpp3, rubycocoa that you build would be > broken. > > Please install gcc3.1 from XcodeTools1.5 to install /usr/bin/cpp3. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give > us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: kimura w. <ki...@us...> - 2004-10-06 15:47:16
|
>[Session started at 2004-10-05 21:45:28 -0400.] >/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/ >objc/oc_import.rb:22:in `module_eval': undefined method >`NSClassFromString' for OSX:Module (NoMethodError) RubyCocoa requires /usr/bin/cpp3 in 'ruby install.rb config'. If your Mac doesn't have /usr/bin/cpp3, rubycocoa that you build would be broken. Please install gcc3.1 from XcodeTools1.5 to install /usr/bin/cpp3. |
From: Stephen S. <sst...@ma...> - 2004-10-06 01:54:42
|
Hi, all! I have now installed the panther branch as suggested and, with 1.8.2, I =20= did have to modify gen_cocoa_wrapper.rb as John Labovitz suggested. I can now successuflly run gen_cocoa_wrapper.rb -- it generates two =20 files rb_Foundation.m and rb_AppKit.m. My recollection is that the =20 original directory contained quite a few files. When I try to run any of the demos I get something like: [Session started at 2004-10-05 21:45:28 -0400.] /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/=20= objc/oc_import.rb:22:in `module_eval': undefined method =20 `NSClassFromString' for OSX:Module (NoMethodError) from =20 /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/=20= objc/oc_import.rb:21:in `module_eval' from =20 /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/=20= objc/oc_import.rb:21:in `ns_import' from =20 /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/=20= objc/foundation.rb:5 from =20 /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/=20= objc/cocoa.rb:11:in `require' from =20 /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/=20= objc/cocoa.rb:11 from =20 /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/=20= cocoa.rb:11:in `require' from =20 /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/=20= cocoa.rb:11 from =20 /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/=20 rb_main.rb:5:in `require' from =20 /Developer/Examples/RubyCocoa/Pong/build/Pong.app/Contents/Resources/=20 rb_main.rb:5 Executable =93rubyapp=94 has exited with status 1. Clues, anyone? Steve |
From: Stephen S. <sst...@ma...> - 2004-10-05 22:24:48
|
How did you get the 'rubycoca-panther' branch? Thanks, Steve > On Oct 5, 2004, at 11:19 AM, Jin Choi wrote: > On Oct 4, 2004, at 10:03 PM, Stephen Steiner wrote: > >> Hi, all! >> >> I'm trying to build RubyCocoa on OS X 10.3.5 with XCode 1.5 and the >> latest ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]. >> >> I am following the steps in Jin Choi's message of 2003-11-12 to build >> under Panther. >> (http://sourceforge.net/mailarchive/message.php?msg_id=6508201). > > Wow, I'm glad someone found that message useful. Or, well, I guess > not, but almost? > > Anyway, I hadn't realized that Xcode 1.5 was out, so I decided to get > it and re-try building RubyCocoa again. I'm on 10.3.5, XCode 1.5, ruby > 1.8.1. Checked out RubyCocoa from source, but retrieved the > rubycocoa-panther branch. Ran ruby gen_cocoa_wrapper.rb no problems, > both with Fink-installed ruby and system default ruby. > > I would recommend trying /usr/bin/ruby, then trying the > rubycocoa-panther branch. By the way, line 45 of och_analyzer3.rb is, > for me: > > re = /\benum\b.*{([^}]*)}/ > > I have no difficulties with that line. Try typing it directly into an > irb command line and see if it gives you a regexp warning. > > -Jin > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give > us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: John L. <jo...@jo...> - 2004-10-05 17:17:46
|
On Oct 5, 2004, at 8:19 AM, Jin Choi wrote: > Anyway, I hadn't realized that Xcode 1.5 was out, so I decided to get > it and re-try building RubyCocoa again. I'm on 10.3.5, XCode 1.5, ruby > 1.8.1. Checked out RubyCocoa from source, but retrieved the > rubycocoa-panther branch. Ran ruby gen_cocoa_wrapper.rb no problems, > both with Fink-installed ruby and system default ruby. I had troubles with Xcode 1.5 and a built-from-source version of 1.8.2. I started in on getting it to work, but realized it was easily to wimp out and revert to Xcode 1.2 and use the DarwinPorts version of ruby and rb-cocoa. > By the way, line 45 of och_analyzer3.rb is, for me: > > re = /\benum\b.*{([^}]*)}/ > > I have no difficulties with that line. Try typing it directly into an > irb command line and see if it gives you a regexp warning. That line should be parsing a C-style "enum { a, b, c }" statement, right? Then those braces ({}) should be quoted: re = /\benum\b.*\{([^}]*)\}/ The middle brace doesn't need the quote, as it's in a character class (I think that's what that's called). -- John Labovitz Consulting, LLC http://mac.johnlabovitz.com jo...@jo... AIM/iChat: jslabovitz +1 503.949.3492 |
From: Jin C. <jin...@ma...> - 2004-10-05 15:21:02
|
On Oct 4, 2004, at 10:03 PM, Stephen Steiner wrote: > Hi, all! > > I'm trying to build RubyCocoa on OS X 10.3.5 with XCode 1.5 and the > latest ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]. > > I am following the steps in Jin Choi's message of 2003-11-12 to build > under Panther. > (http://sourceforge.net/mailarchive/message.php?msg_id=6508201). Wow, I'm glad someone found that message useful. Or, well, I guess not, but almost? Anyway, I hadn't realized that Xcode 1.5 was out, so I decided to get it and re-try building RubyCocoa again. I'm on 10.3.5, XCode 1.5, ruby 1.8.1. Checked out RubyCocoa from source, but retrieved the rubycocoa-panther branch. Ran ruby gen_cocoa_wrapper.rb no problems, both with Fink-installed ruby and system default ruby. I would recommend trying /usr/bin/ruby, then trying the rubycocoa-panther branch. By the way, line 45 of och_analyzer3.rb is, for me: re = /\benum\b.*{([^}]*)}/ I have no difficulties with that line. Try typing it directly into an irb command line and see if it gives you a regexp warning. -Jin |
From: Stephen S. <sst...@ma...> - 2004-10-05 02:13:12
|
Sorry to reply to myself but after: > ../../../../tool/och_analyzer3.rb:45: warning: regexp has `}' without > escape The program hangs and the subsequent error messages are generated when I ctrl-C out of it. Steve |
From: Stephen S. <sst...@ma...> - 2004-10-05 02:04:42
|
Hi, all! I'm trying to build RubyCocoa on OS X 10.3.5 with XCode 1.5 and the latest ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]. I am following the steps in Jin Choi's message of 2003-11-12 to build under Panther. (http://sourceforge.net/mailarchive/message.php?msg_id=6508201). I have installed Ruby from source, gotten RubyCocoa from CVS, and have gotten to step 3. 3. There are several Cocoa constants defined in the ruby wrappers that are now obsolete on Panther. You must rebuild them: cd framework/src/objc/cocoa rm rb_*.m ruby gen_cocoa_wrapper.rb When I try to run gen_cocoa_wrapper.rb, I get: ~/Development/Ruby/rubycocoa/framework/src/objc/cocoa->ruby gen_cocoa_wrapper.rb ../../../../tool/och_analyzer3.rb:45: warning: regexp has invalid interval ../../../../tool/och_analyzer3.rb:45: warning: regexp has `}' without escape ^C../../../../tool/och_analyzer3.rb:178:in ``': Interrupt from ../../../../tool/och_analyzer3.rb:178:in `do_cpp' from ../../../../tool/och_analyzer3.rb:20:in `initialize' from gen_cocoa_wrapper.rb:314:in `new' from gen_cocoa_wrapper.rb:314:in `gen_skelton' from gen_cocoa_wrapper.rb:354 from gen_cocoa_wrapper.rb:354:in `each' from gen_cocoa_wrapper.rb:354 And the program hangs -- no error, just hangs. Has anyone gotten past this point and, if so, what did you do? Thanks, Steve P.S. When I get this working, I will write it up and provide patches so that we can move this project along. Seems like it's pretty stagnant at this point... ss |
From: Pierre T. <p.t...@bi...> - 2004-06-17 19:03:55
|
Hello, I have installed Ruby Cocoa but when I run: > require 'osx/cocoa' > snd_files =`ls /System/Library/Sounds/*.aiff`.split > snd_files.each do |path| > snd = OSX::NSSound.alloc.initWithContentsOfFile_byReference(path, > true) > snd.play > sleep 0.5 > end I have the following error: > playSound.rb:1:in `require': No such file to load -- osx/cocoa > (LoadError) > from playSound.rb:1 What should I do? Regards. --------------------- Pierre |
From: John N. A. <li...@li...> - 2004-06-04 13:43:30
|
Does anyone know of any example projects using the Rubycocoa bindings to access objects in WebObjects Framework? Is this possible? All comments welcome john ------------------------------------ John N. Alegre o Andante Systems o eCommerce Consulting o Custom Web Development <*{{{{}>< ------------------------------------ |
From: John N. A. <li...@li...> - 2004-06-02 20:48:58
|
Is there a way to use Ruby with Web Objects Framework 5.2? Are there any example projects available of Rubycocoa bindings to WOF? All comments welcome. john ------------------------------------ John N. Alegre o Andante Systems o eCommerce Consulting o Custom Web Development <*{{{{}>< ------------------------------------ |
From: harry <hv...@ch...> - 2004-06-01 19:12:21
|
(message resend, didn't get through to the list at first) > Message: 1 > From: Kevin Bullock <krb...@ma...> > Date: Fri, 28 May 2004 00:41:41 -0500 > To: rub...@li... > Subject: [Rubycocoa-talk] Re: Rubycocoa-talk digest, Vol 1 #52 - 1 msg > Reply-To: rub...@li... > [...] > In doing so, you removed the things that disappeared from Cocoa in=20 > 10.3, but you didn't add support for any of the new things that=20 > appeared. To do that, all you have to do is re-run the script that=20 > generates the class bindings: > > % cd framework/src/objc/cocoa/ && ruby gen_cocoa_wrapper.rb > > Then re-configure and re-build as normal. That should get you going. Thx for the tip, but unfortunately it didn't solve my problem ... I get the same error-message mentioned before ... If I do the tutorial on Apple's ADC-site (http://developer.apple.com/cocoa/cocoabindings.html) as a ruby-project, and run from Xcode, I get a different message: 2004-05-30 12:49:15.280 bindprefs[3209] *** -[NSCFNumber bytes]: selector not recognized /Users/hvs/tmp/bindprefs/build/bindprefs.app/Contents/Resources/ rb_main.rb:19:in `NSApplicationMain': NSApplicationMain - NSInvalidArgumentException - *** -[NSCFNumber bytes]: selector not recognized (OSX::OCException) from /Users/hvs/tmp/bindprefs/build/bindprefs.app/Contents/Resources/ rb_main.rb:19 The Objective-C version is working fine. Is Cocoa Bindings working with RubyCocoa? Any successtories amongst the listas? If so, it may just be a shaky install on my system ... Harry |