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...> - 2008-03-15 06:25:40
|
Sorry, It's my misunderstanding. The setting works when the setting is changed on "Traget" (not project). > > BUT, it seems the setting 1-(1) does not work correctly for Xcode 2.4 > format projects with Xcode 3.0. -- kimura wataru |
From: kimura w. <ki...@us...> - 2008-03-15 06:08:55
|
Hi, It is same as Objective-C projects. 1.Xcode project info (1) General > Cross-Development Using Targe SDK -> Mac OS X 10.4 (Universal) (2) Build > Architecture -> i386 ppc 2.copy RubyCocoa.framework(for 10.4) into YourApp.app/Contents/Frameworks You can get RubyCocoa.framework for 10.4 from the 10.4 binary installer with the following command. % pax -r -z -f /Volumes/RubyCocoa-0.13.2.1-OSX10.4universal/\ RubyCocoa-0.13.2.1-OSX10.4universal.pkg/Contents/Archive.pax.gz \ ./Library/Frameworks % ls Library/Frameworks RubyCocoa.framework/ BUT, it seems the setting 1-(1) does not work correctly for Xcode 2.4 format projects with Xcode 3.0. The command "xcodebuild" works correctly with ARCHS option. % cd YourProject % pax -r -z -f /Volumes/RubyCocoa-0.13.2.1-OSX10.4universal/\ RubyCocoa-0.13.2.1-OSX10.4universal.pkg/Contents/Archive.pax.gz \ ./Library/Frameworks % xcodebuild -configuration Release ARCHS='i386 ppc' \ SDKROOT='$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdK' \ FRAMEWORK_SEARCH_PATHS=./Library/Frameworks % mkdir build/Release/YourApp.app/Contents/Frameworks % cp ./Library/Frameworks/RubyCocoa.framework On Sat, 1 Mar 2008 15:30:38 -0700, Rod Schmidt wrote: > Has anybody figured out how to build a 10.4 targeted universal app on > a Leopard machine? I'd really like to be able to do this. > > Thanks, > > Rod > -- kimura wataru |
From: Eloy D. <e....@su...> - 2008-03-14 09:01:57
|
Hi Matias, I would suggest first looking at classes in cocoa which most of the times do things like firing notifications which are much easier to work with that threads. For instance NSURLRequest. Eloy On Mar 14, 2008, at 1:25 AM, Laurent Sansonetti wrote: > Hi Matias, > > On Thu, Mar 13, 2008 at 4:31 PM, Matias Pablo Brutti > <mat...@gm...> wrote: >> Hi , >> >> I've read that rubycocoa has some issues with threads , NSThreads, >> which >> will be the best approach to take to actually use threads?, which >> type of >> threads should I use and finally is there an example or doc on >> rubycocoa >> threads that you recommend ?, >> >> I'm implementing an application that makes lots of requests which >> takes some >> time. My idea is to thread that process and while I receiving he >> info update >> the TableView, all this while not frezzing my main application but >> without >> threads I do not see how to do that. any ideas ? >> > > The current version of Ruby (1.8) not being thread-safe, it is > currently impossible to use NSThreads. Well you can, but RubyCocoa > will route calls into the main thread for you (to avoid crashing), and > it might cause a deadlock sometimes. > > The preferable way is to use Ruby threads instead. In Leopard, both > the interpreter and RubyCocoa were modified to support calling > Objective-C from Ruby threads. But this support is not ideal (you can > see that as a hack), and sometimes it doesn't work. > > You can also use NSTimers or any other mechanism driven by the Cocoa > runloop. > > HTH, > Laurent > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Laurent S. <lau...@gm...> - 2008-03-14 00:25:44
|
Hi Matias, On Thu, Mar 13, 2008 at 4:31 PM, Matias Pablo Brutti <mat...@gm...> wrote: > Hi , > > I've read that rubycocoa has some issues with threads , NSThreads, which > will be the best approach to take to actually use threads?, which type of > threads should I use and finally is there an example or doc on rubycocoa > threads that you recommend ?, > > I'm implementing an application that makes lots of requests which takes some > time. My idea is to thread that process and while I receiving he info update > the TableView, all this while not frezzing my main application but without > threads I do not see how to do that. any ideas ? > The current version of Ruby (1.8) not being thread-safe, it is currently impossible to use NSThreads. Well you can, but RubyCocoa will route calls into the main thread for you (to avoid crashing), and it might cause a deadlock sometimes. The preferable way is to use Ruby threads instead. In Leopard, both the interpreter and RubyCocoa were modified to support calling Objective-C from Ruby threads. But this support is not ideal (you can see that as a hack), and sometimes it doesn't work. You can also use NSTimers or any other mechanism driven by the Cocoa runloop. HTH, Laurent |
From: Matias P. B. <mat...@gm...> - 2008-03-13 23:31:48
|
Hi , I've read that rubycocoa has some issues with threads , NSThreads, which will be the best approach to take to actually use threads?, which type of threads should I use and finally is there an example or doc on rubycocoa threads that you recommend ?, I'm implementing an application that makes lots of requests which takes some time. My idea is to thread that process and while I receiving he info update the TableView, all this while not frezzing my main application but without threads I do not see how to do that. any ideas ? Thanks a lot Matt -- -- --<自由編碼人>-- Ing. Matias Pablo Brutti Security Consultant Email : mat...@gm... Site: http://www.freedomcoder.com.ar |
From: Yvon T. <yvo...@gm...> - 2008-03-13 19:46:26
|
i wonder if we still need some kind of proxy object for xml/smart "XML::Smart::Dom::Element" within a NSOutlineView because when i send an Element i get back an "OSX::NSIndexSet" i'm using rubycocoa 0.13.2 with ruby 1.8.6 (2007-09-24 patchlevel 111) [ powerpc-darwin8.11.0] -- yvon |
From: Benjamin J. <bhj...@gm...> - 2008-03-11 18:20:13
|
Every now and then when my app starts up, I get a weird LocalJumpError: 2008-03-11 15:14:56.982 Blogo[12502] TabViewController#newPost: LocalJumpError: unexpected return /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_wrapper.rb:145:in `default' /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_wrapper.rb:67:in `analyze_missing' /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/objc/oc_wrapper.rb:48:in `method_missing' /Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/TabViewController.rb:189:in `newPost' /Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/rb_main.rb:35:in `NSApplicationMain' /Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/rb_main.rb:35 /Users/bjackson/working/blogo/trunk/Blogo.app/Contents/Resources/SACrashReporter.rb:77:in `run_app' The offending line in my code is: @editor.keyWindow.makeFirstResponder @titleField This call to makeFirstResponder seems to be the issue. This code is called from a 1.5 second timer in my controller's awakeFromNib: method. Has anyone else seen this error, or have any idea what to do about it? Thanks, Ben |
From: Robert K. <rob...@ma...> - 2008-03-10 20:37:08
|
Hello, I'm working on an application that launches a 3rd party Ruby/Cocoa application. I use NSWorkspace openFile to launch the application, and then I try to register for NSWorkspaceDidTerminateApplicationNotification from the shared workspace. It seems as if the 3rd party app is not posting this notification when it calls OSX::NSApplication.sharedApplication.terminate self. Any suggestions? I'm not too familiar with Ruby+Cocoa, I'm more of a pure Cocoa developer. Cheers Rob |
From: Yon Ru <ru...@sh...> - 2008-03-09 06:30:36
|
Hi all, Can anyone tell me how to build a xcode project using RBObject.h without an error? I'm trying to build a obj-c cocoa application which links to RubyCocoa, but whenever I import RBObject.h the project file does not build. Just importing the header file in an empty file causes massive build errors. It looks like osx_ruby.h file, which is imported by RBObject.h file, looks for bunch of ruby header files, but I don't want to modify system framework files. Is the stock version of RubyCocoa on leopard (10.5.2) is broken? or am I missing something? Any advice is appreciated. |
From: Matias P. B. <mat...@gm...> - 2008-03-08 20:54:08
|
Thanks , I looking at the example and I'm getting the idea .. thanks a lot .. when i'm finished I will write again to tell you how it went. Thanks a lot !!! On Sat, Mar 8, 2008 at 11:18 AM, Eloy Duran <e....@su...> wrote: > Hi Matt, > > I would advice you to take a look at the example in /Developer/ > Examples/RubyCocoa/MailDemo/MailDemoSimple. > Especially look at MyController.rb where the data is being provided by > the controller via NSTableView delegate methods. > This is probably the easiest way to do it if you're new to this. > > Also check out > http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/TableView.html > for more in depth info. > > Good luck! > > Eloy > > On 8 mrt 2008, at 19:09, Matias Pablo Brutti wrote: > > > hi, i'm new to the world of rubycocoa and I'm trying to create an > > application which uses a Tableview to show some data , I've search > > for an example on how to pass the data to the table in order to show > > the data but I cannot find anything. I know that the app is doing > > what it suppose to do because I enter what I need I'm logging and > > the data is retireved but never shown in the actual table :( . > > > > Like I said I'm new and I do not know if this is a stupid question > > or not , but google for two days and now I decided to ask for some > > help :D > > > > basically, what I need to do is a table with 3 columns named IP, > > URL , RESULTS with a for loop that gets some data and it should > > update one row at a time. > > > > Thanks a lot in advance! > > > > Cheers > > > > Matt > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > > Rubycocoa-talk mailing list > > Rub...@li... > > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > -- -- --<自由編碼人>-- Ing. Matias Pablo Brutti Security Consultant Email : mat...@gm... Site: http://www.freedomcoder.com.ar |
From: Eloy D. <e....@su...> - 2008-03-08 19:18:48
|
Hi Matt, I would advice you to take a look at the example in /Developer/ Examples/RubyCocoa/MailDemo/MailDemoSimple. Especially look at MyController.rb where the data is being provided by the controller via NSTableView delegate methods. This is probably the easiest way to do it if you're new to this. Also check out http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/TableView.html for more in depth info. Good luck! Eloy On 8 mrt 2008, at 19:09, Matias Pablo Brutti wrote: > hi, i'm new to the world of rubycocoa and I'm trying to create an > application which uses a Tableview to show some data , I've search > for an example on how to pass the data to the table in order to show > the data but I cannot find anything. I know that the app is doing > what it suppose to do because I enter what I need I'm logging and > the data is retireved but never shown in the actual table :( . > > Like I said I'm new and I do not know if this is a stupid question > or not , but google for two days and now I decided to ask for some > help :D > > basically, what I need to do is a table with 3 columns named IP, > URL , RESULTS with a for loop that gets some data and it should > update one row at a time. > > Thanks a lot in advance! > > Cheers > > Matt > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Matias P. B. <mat...@gm...> - 2008-03-08 18:09:52
|
hi, i'm new to the world of rubycocoa and I'm trying to create an application which uses a Tableview to show some data , I've search for an example on how to pass the data to the table in order to show the data but I cannot find anything. I know that the app is doing what it suppose to do because I enter what I need I'm logging and the data is retireved but never shown in the actual table :( . Like I said I'm new and I do not know if this is a stupid question or not , but google for two days and now I decided to ask for some help :D basically, what I need to do is a table with 3 columns named IP, URL , RESULTS with a for loop that gets some data and it should update one row at a time. Thanks a lot in advance! Cheers Matt |
From: kimura w. <ki...@us...> - 2008-03-06 13:13:08
|
Hi, The RubyCocoa 0.13.2 binary installer for 10.4 has a problem the following files are installed into wrong destinations. * project templates -> "RubyCocoa xxx" cannot appear when Xcode "New Project..." * .rb files of lib/ruby/ (sitedir) -> require 'osx/cocoa' fails with commandline ruby I released the fixed binary installer for MacOSX 10.4 Tiger as 0.13.2.1. http://rubycocoa.sf.net http://sourceforge.net/project/showfiles.php?group_id=44114 -- kimura wataru |
From: Yvon T. <yvo...@gm...> - 2008-03-06 08:59:49
|
hey all, i got the following WARNING: 2007-11-29 12:19:29.755 ruby[1129] WARNING: multiple libruby.dylib found: '/opt/local/lib/libruby.dylib' and '/usr/lib/libruby.1.dylib' 2007-11-29 12:19:29.756 ruby[1129] RBCocoaInstallRubyThreadSchedulerHooks: warning: rb_set_cocoa_thread_hooks is linked from a different library (/usr/lib/libruby.1.dylib) than ruby_init (/opt/local/lib/libruby.dylib) and i do have prob with threads... Do I need to re-install RubyCocoa? I want it to work with the MacPorts install (/opt/local). -- yvon |
From: Yvon T. <yvo...@gm...> - 2008-03-06 08:54:32
|
hey all, i'm using the paste board such a way : def initialize [...] @pbd = NSPasteboard.generalPasteboard @pbd.declareTypes_owner( NSArray.arrayWithObject( NSStringPboardType ), nil ) [...] end def set_clipboard( sender ) cb = '#ff0000' # default value [...] @pbd.setString_forType( cb, NSStringPboardType ) end this works great under xcode but not at all after standaloneification ... a suggestion ? -- yvon |
From: Rod S. <rsc...@xm...> - 2008-03-04 17:18:32
|
I'm not overriding anything and Objective-C doesn't have a chomp method so I don't know why it's complaining. Rod On Mar 4, 2008, at 9:17 AM, Eloy Duran wrote: > Hi Rod, > > Not sure where the overriding of #chomp happens and/or that's > supposed to happen...? > But anyways, if you want to be able to override stuff without RC > complaining about > the arity you should do the following somewhere before you start > your tests: > > def OSX._ignore_ns_override; true; end > > Cheers, > Eloy > > On Mar 4, 2008, at 8:04 AM, Rod Schmidt wrote: > >> I'm trying to do some unit testing with RubyCocoa and am having >> some problems. I have a main program like so: >> >> int main(int argc, const char *argv[]) >> { >> return RBApplicationMain("../../PackRat/source/tests/ >> rb_testmain.rb", argc, argv); >> } >> >> >> rb_testmain.rb is: >> >> require 'osx/cocoa' >> require 'test/unit/ui/console/testrunner' >> >> OSX.ns_import :Backpack >> >> class TC_PackRatTests < Test::Unit::TestCase >> def setup >> @backpack = Backpack.alloc.initWithSitename_token_ssl('username', >> '', false); >> end >> >> def teardown >> # Write teardown code here. >> end >> >> def test1 >> # Write first test here. >> end >> end >> >> if $0 == __FILE__ then >> Test::Unit::UI::Console::TestRunner.run(TC_PackRatTests) >> end >> >> When I run the program I get the following: >> >> /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ >> oc_import.rb:323:in `_ns_behavior_method_added': Cannot override >> Objective-C method 'chomp' with Ruby method #chomp, they should >> both have the same number of arguments. (expected arity 0, got -1) >> (RuntimeError) >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/oc_import.rb:646:in `method_added' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/oc_import.rb:718:in `define_method' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/oc_import.rb:718:in `_register_method' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/oc_import.rb:716:in `module_eval' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/oc_import.rb:716:in `_register_method' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/oc_import.rb:730:in `method_added' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/oc_attachments.rb:363 >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/oc_all.rb:12:in `require' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/oc_all.rb:12 >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/foundation.rb:8:in `require' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/foundation.rb:8 >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/cocoa.rb:8:in `require' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> objc/cocoa.rb:8 >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> cocoa.rb:8:in `require' >> from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ >> cocoa.rb:8 >> from /Users/rod/Development/Projects/infiniteNIL/Build/Debug/../../ >> PackRat/source/tests/rb_testmain.rb:9:in `require' >> from /Users/rod/Development/Projects/infiniteNIL/Build/Debug/../../ >> PackRat/source/tests/rb_testmain.rb:9 >> >> If I uncomment the require 'osx/cocoa' then it works, except of >> course ns_import fails because it doesn't know the method. Anybody >> know why I'm getting this error? >> >> Thanks, >> >> Rod >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Eloy D. <e....@su...> - 2008-03-04 16:17:41
|
Hi Rod, Not sure where the overriding of #chomp happens and/or that's supposed to happen...? But anyways, if you want to be able to override stuff without RC complaining about the arity you should do the following somewhere before you start your tests: def OSX._ignore_ns_override; true; end Cheers, Eloy On Mar 4, 2008, at 8:04 AM, Rod Schmidt wrote: > I'm trying to do some unit testing with RubyCocoa and am having some > problems. I have a main program like so: > > int main(int argc, const char *argv[]) > { > return RBApplicationMain("../../PackRat/source/tests/ > rb_testmain.rb", argc, argv); > } > > > rb_testmain.rb is: > > require 'osx/cocoa' > require 'test/unit/ui/console/testrunner' > > OSX.ns_import :Backpack > > class TC_PackRatTests < Test::Unit::TestCase > def setup > @backpack = Backpack.alloc.initWithSitename_token_ssl('username', > '', false); > end > > def teardown > # Write teardown code here. > end > > def test1 > # Write first test here. > end > end > > if $0 == __FILE__ then > Test::Unit::UI::Console::TestRunner.run(TC_PackRatTests) > end > > When I run the program I get the following: > > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_import.rb:323:in `_ns_behavior_method_added': Cannot override > Objective-C method 'chomp' with Ruby method #chomp, they should both > have the same number of arguments. (expected arity 0, got -1) > (RuntimeError) > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_import.rb:646:in `method_added' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_import.rb:718:in `define_method' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_import.rb:718:in `_register_method' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_import.rb:716:in `module_eval' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_import.rb:716:in `_register_method' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_import.rb:730:in `method_added' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_attachments.rb:363 > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_all.rb:12:in `require' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/oc_all.rb:12 > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/foundation.rb:8:in `require' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/foundation.rb:8 > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/cocoa.rb:8:in `require' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/cocoa.rb:8 > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > cocoa.rb:8:in `require' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > cocoa.rb:8 > from /Users/rod/Development/Projects/infiniteNIL/Build/Debug/../../ > PackRat/source/tests/rb_testmain.rb:9:in `require' > from /Users/rod/Development/Projects/infiniteNIL/Build/Debug/../../ > PackRat/source/tests/rb_testmain.rb:9 > > If I uncomment the require 'osx/cocoa' then it works, except of > course ns_import fails because it doesn't know the method. Anybody > know why I'm getting this error? > > Thanks, > > Rod > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Rod S. <rsc...@xm...> - 2008-03-04 07:04:57
|
I'm trying to do some unit testing with RubyCocoa and am having some problems. I have a main program like so: int main(int argc, const char *argv[]) { return RBApplicationMain("../../PackRat/source/tests/rb_testmain.rb", argc, argv); } rb_testmain.rb is: require 'osx/cocoa' require 'test/unit/ui/console/testrunner' OSX.ns_import :Backpack class TC_PackRatTests < Test::Unit::TestCase def setup @backpack = Backpack.alloc.initWithSitename_token_ssl('username', '', false); end def teardown # Write teardown code here. end def test1 # Write first test here. end end if $0 == __FILE__ then Test::Unit::UI::Console::TestRunner.run(TC_PackRatTests) end When I run the program I get the following: /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_import.rb:323:in `_ns_behavior_method_added': Cannot override Objective-C method 'chomp' with Ruby method #chomp, they should both have the same number of arguments. (expected arity 0, got -1) (RuntimeError) from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_import.rb:646:in `method_added' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_import.rb:718:in `define_method' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_import.rb:718:in `_register_method' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_import.rb:716:in `module_eval' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_import.rb:716:in `_register_method' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_import.rb:730:in `method_added' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_attachments.rb:363 from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_all.rb:12:in `require' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ oc_all.rb:12 from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ foundation.rb:8:in `require' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ foundation.rb:8 from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ cocoa.rb:8:in `require' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ cocoa.rb:8 from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ cocoa.rb:8:in `require' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ cocoa.rb:8 from /Users/rod/Development/Projects/infiniteNIL/Build/Debug/../../ PackRat/source/tests/rb_testmain.rb:9:in `require' from /Users/rod/Development/Projects/infiniteNIL/Build/Debug/../../ PackRat/source/tests/rb_testmain.rb:9 If I uncomment the require 'osx/cocoa' then it works, except of course ns_import fails because it doesn't know the method. Anybody know why I'm getting this error? Thanks, Rod |
From: Rod S. <rsc...@xm...> - 2008-03-01 22:30:48
|
Has anybody figured out how to build a 10.4 targeted universal app on a Leopard machine? I'd really like to be able to do this. Thanks, Rod |
From: Eloy D. <e....@su...> - 2008-02-29 23:06:22
|
Hi Pierce, I haven't looked at the dcoumentation, but I'm guessing that the error is passed as a pointer, which doesn't work in RC. So what the bridge will do for you is recognize this and simply return and new NSError instance for you. So the method call should look like: @storeMetaDeta, error = NSPersistentStore.metadataForPersistentStoreWithURL_error(url) As you can see we only pass 1 arg and 2 objects will be returned. Cheers, Eloy On 29 feb 2008, at 19:40, Pierce T. Wetter III wrote: > > The code: > > > @storeMetaDeta > =NSPersistentStore.metadataForPersistentStoreWithURL_error(url,error) > > The error: > > 2008-02-29 10:36:04.750 Frictionless[48280:813] > AppDelegate#openAllWindows: OSX::OCException: > NSInvalidArgumentException - *** - > metadataForPersistentStoreWithURL:error: cannot be sent to an > abstract object of class NSPersistentStore: Create a concrete > instance! > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Pierce T. W. I. <pi...@tw...> - 2008-02-29 22:43:10
|
> > hmm.... Seems there's a: + (NSDictionary *)metadataForPersistentStoreOfType:(NSString *)storeType URL:(NSURL *)url error:(NSError **)error declared in the online docs, but not in my XCode docs. http://developer.apple.com/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSPersistentStoreCoordinator_Class/Reference/NSPersistentStoreCoordinator.html#/ /apple_ref/doc/uid/TP30001180-SW5 Pierce |
From: Pierce T. W. I. <pi...@tw...> - 2008-02-29 21:21:08
|
On Feb 29, 2008, at 10:50 AM, Avram Lyon wrote: > On Fri, Feb 29, 2008 at 9:40 PM, Pierce T. Wetter III > <pi...@tw...> wrote: >> The code: >> >> @storeMetaDeta >> =NSPersistentStore.metadataForPersistentStoreWithURL_error(url,error) > > Looking at the class documentation > (http://developer.apple.com/documentation/Cocoa/Reference/NSPersistentStore_Class/Reference/NSPersistentStore.html#/ > /apple_ref/occ/clm/NSPersistentStore/ > metadataForPersistentStoreWithURL:error:), > NSPersistentStore.metadataForPersistentStoreWithURL_error is supposed > to be a class method. Yes, it is. > > > Could RubyCocoa be mangling the mapping? > > Try initializing a store instance with > initWithPersistentStoreCoordinator:configurationName:URL:options: and > then use metadataForPersistentStoreWithURL_error on the instance. I > realize that defeats the purpose of getting metadata with a class and > not instance method, but it might help understand what's going on. I'm in sort of a catch-22. I can't build a persistentStoreCoordinator without an NSManagedObjectModel. I can't build one of those because @managedObjectModel = OSX::NSManagedObjectModel.mergedModelFromBundles(allBundles.allObjects) is choking, giving me an exception for trying to insert nil in an NSArray. So I'm trying to do this instead: @managedObjectModel = OSX ::NSManagedObjectModel .mergedModelFromBundles_forStoreMetaData (allBundles.allObjects,@storeMetaData) but in order to do that, I have to be able to extract the metadata from the file without creating a store... Pierce |
From: Avram L. <aj...@gm...> - 2008-02-29 18:50:44
|
On Fri, Feb 29, 2008 at 9:40 PM, Pierce T. Wetter III <pi...@tw...> wrote: > The code: > > @storeMetaDeta > =NSPersistentStore.metadataForPersistentStoreWithURL_error(url,error) Looking at the class documentation (http://developer.apple.com/documentation/Cocoa/Reference/NSPersistentStore_Class/Reference/NSPersistentStore.html#//apple_ref/occ/clm/NSPersistentStore/metadataForPersistentStoreWithURL:error:), NSPersistentStore.metadataForPersistentStoreWithURL_error is supposed to be a class method. Could RubyCocoa be mangling the mapping? Try initializing a store instance with initWithPersistentStoreCoordinator:configurationName:URL:options: and then use metadataForPersistentStoreWithURL_error on the instance. I realize that defeats the purpose of getting metadata with a class and not instance method, but it might help understand what's going on. Avram |
From: Pierce T. W. I. <pi...@tw...> - 2008-02-29 18:40:58
|
The code: @storeMetaDeta =NSPersistentStore.metadataForPersistentStoreWithURL_error(url,error) The error: 2008-02-29 10:36:04.750 Frictionless[48280:813] AppDelegate#openAllWindows: OSX::OCException: NSInvalidArgumentException - *** - metadataForPersistentStoreWithURL:error: cannot be sent to an abstract object of class NSPersistentStore: Create a concrete instance! |
From: Knud H. M. <knu...@de...> - 2008-02-29 15:30:09
|
Hi Eloy, thanks for the answer. However, from what I can see, the undo menu item _is_ hooked up to the first responder in the ruby template. sentActions: undo -> FirstResponder So, it seems like there is a different problem. Cheers, Knud Am 28.02.2008 um 18:42 schrieb Eloy Duran: > Hi Knud, > > Iirc you need to hookup the undo menu item to the first repsonder, > which is correctly set in the normal templates. > > Eloy > > On 28 feb 2008, at 19:09, Knud Hinnerk Möller wrote: > >> Hi, >> >> another thing I just discovered: if you create a basic ObjC coredata >> app from the appropriate template in XCode, you'll get undo support. >> If you create the same application with RubyCocoa (using the XCode >> template again), you don't. Are there some settings I need to set >> before undo support works? Or is this a bug in RubyCocoa? >> >> Cheers, >> Knud >> ------------------------------------------------- >> Knud Möller, MA >> +353 - 91 - 495086 >> Smile Group: http://smile.deri.ie >> Digital Enterprise Research Institute >> National University of Ireland, Galway >> Institiúid Taighde na Fiontraíochta Digití >> Ollscoil na hÉireann, Gaillimh >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk ------------------------------------------------- Knud Möller, MA +353 - 91 - 495086 Smile Group: http://smile.deri.ie Digital Enterprise Research Institute National University of Ireland, Galway Institiúid Taighde na Fiontraíochta Digití Ollscoil na hÉireann, Gaillimh |