Nib issues on Snow Leopard
I'm trying to get a project that ran on MacRuby 0.4 and Leopard working with 0.5 on Snow Leopard. When I launch the app I get the following errors: 2009-09-15 20:08:08.954 TwittRb[87043:a0b] Unknown class 'TwittRbDelegate', using 'NSObject' instead. Encountered in Interface Builder file at path /Users/alex/Development/peepcode-meet-macruby/ build/Debug/TwittRb.app/Contents/Resources/English.lproj/MainMenu.nib. 2009-09-15 20:08:08.969 TwittRb[87043:a0b] Could not connect the action hideCredentials: to target of class NSObject 2009-09-15 20:08:08.970 TwittRb[87043:a0b] Could not connect the action submitCredentials: to target of class NSObject 2009-09-15 20:08:08.971 TwittRb[87043:a0b] Could not connect the action retrieveTweets: to target of class NSObject 2009-09-15 20:08:08.971 TwittRb[87043:a0b] Could not connect the action postTweet: to target of class NSObject 2009-09-15 20:08:08.991 TwittRb[87043:a0b] *** Illegal NSTableView data source (<NSObject: 0x200312360>). Must implement numberOfRowsInTableView: and tableView:objectValueForTableColumn:row: When I load the Nib in Interface Builder everything looks okay (no warnings or errors) so I'm not sure what I need to change to make this go. Any thoughts? Cheers, Alex ---- Musings & Notes — http://alexvollmer.com Track what you lend and borrow — http://moochbot.com
Could you give us more info or even better the source code? Thanks, - Matt On Tue, Sep 15, 2009 at 8:15 PM, Alex Vollmer <alex.vollmer@gmail.com>wrote:
I'm trying to get a project that ran on MacRuby 0.4 and Leopard working with 0.5 on Snow Leopard. When I launch the app I get the following errors:
2009-09-15 20:08:08.954 TwittRb[87043:a0b] Unknown class 'TwittRbDelegate', using 'NSObject' instead. Encountered in Interface Builder file at path /Users/alex/Development/peepcode-meet-macruby/build/Debug/TwittRb.app/Contents/Resources/English.lproj/MainMenu.nib. 2009-09-15 20:08:08.969 TwittRb[87043:a0b] Could not connect the action hideCredentials: to target of class NSObject 2009-09-15 20:08:08.970 TwittRb[87043:a0b] Could not connect the action submitCredentials: to target of class NSObject 2009-09-15 20:08:08.971 TwittRb[87043:a0b] Could not connect the action retrieveTweets: to target of class NSObject 2009-09-15 20:08:08.971 TwittRb[87043:a0b] Could not connect the action postTweet: to target of class NSObject 2009-09-15 20:08:08.991 TwittRb[87043:a0b] *** Illegal NSTableView data source (<NSObject: 0x200312360>). Must implement numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:
When I load the Nib in Interface Builder everything looks okay (no warnings or errors) so I'm not sure what I need to change to make this go. Any thoughts?
Cheers,
Alex
---- Musings & Notes — http://alexvollmer.com Track what you lend and borrow — http://moochbot.com
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Yeah, sorry for the lack of details. The code is posted on GitHub at http://github.com/peepcode/peepcode-035-macruby . I was curious if this was some well-known 0.5 issue. It appears that it's not so the next step is probably to start re-building the app a bit at a time in 0.5 (it's not that much code). Cheers, Alex V. On Sep 16, 2009, at Sep 16, 1:51 AM, Matt Aimonetti wrote:
Could you give us more info or even better the source code?
Thanks,
- Matt
On Tue, Sep 15, 2009 at 8:15 PM, Alex Vollmer <alex.vollmer@gmail.com> wrote: I'm trying to get a project that ran on MacRuby 0.4 and Leopard working with 0.5 on Snow Leopard. When I launch the app I get the following errors:
2009-09-15 20:08:08.954 TwittRb[87043:a0b] Unknown class 'TwittRbDelegate', using 'NSObject' instead. Encountered in Interface Builder file at path /Users/alex/Development/peepcode-meet- macruby/build/Debug/TwittRb.app/Contents/Resources/English.lproj/ MainMenu.nib. 2009-09-15 20:08:08.969 TwittRb[87043:a0b] Could not connect the action hideCredentials: to target of class NSObject 2009-09-15 20:08:08.970 TwittRb[87043:a0b] Could not connect the action submitCredentials: to target of class NSObject 2009-09-15 20:08:08.971 TwittRb[87043:a0b] Could not connect the action retrieveTweets: to target of class NSObject 2009-09-15 20:08:08.971 TwittRb[87043:a0b] Could not connect the action postTweet: to target of class NSObject 2009-09-15 20:08:08.991 TwittRb[87043:a0b] *** Illegal NSTableView data source (<NSObject: 0x200312360>). Must implement numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:
When I load the Nib in Interface Builder everything looks okay (no warnings or errors) so I'm not sure what I need to change to make this go. Any thoughts?
Cheers,
Alex
---- Musings & Notes — http://alexvollmer.com Track what you lend and borrow — http://moochbot.com
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
I'll look at it after work, there shouldn't be anything to write for it to work under 0.5. - Matt On Wed, Sep 16, 2009 at 3:26 PM, Alex Vollmer <alex.vollmer@gmail.com>wrote:
Yeah, sorry for the lack of details. The code is posted on GitHub at http://github.com/peepcode/peepcode-035-macruby. I was curious if this was some well-known 0.5 issue. It appears that it's not so the next step is probably to start re-building the app a bit at a time in 0.5 (it's not that much code). Cheers,
Alex V.
On Sep 16, 2009, at Sep 16, 1:51 AM, Matt Aimonetti wrote:
Could you give us more info or even better the source code?
Thanks,
- Matt
On Tue, Sep 15, 2009 at 8:15 PM, Alex Vollmer <alex.vollmer@gmail.com>wrote:
I'm trying to get a project that ran on MacRuby 0.4 and Leopard working with 0.5 on Snow Leopard. When I launch the app I get the following errors:
2009-09-15 20:08:08.954 TwittRb[87043:a0b] Unknown class 'TwittRbDelegate', using 'NSObject' instead. Encountered in Interface Builder file at path /Users/alex/Development/peepcode-meet-macruby/build/Debug/TwittRb.app/Contents/Resources/English.lproj/MainMenu.nib. 2009-09-15 20:08:08.969 TwittRb[87043:a0b] Could not connect the action hideCredentials: to target of class NSObject 2009-09-15 20:08:08.970 TwittRb[87043:a0b] Could not connect the action submitCredentials: to target of class NSObject 2009-09-15 20:08:08.971 TwittRb[87043:a0b] Could not connect the action retrieveTweets: to target of class NSObject 2009-09-15 20:08:08.971 TwittRb[87043:a0b] Could not connect the action postTweet: to target of class NSObject 2009-09-15 20:08:08.991 TwittRb[87043:a0b] *** Illegal NSTableView data source (<NSObject: 0x200312360>). Must implement numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:
When I load the Nib in Interface Builder everything looks okay (no warnings or errors) so I'm not sure what I need to change to make this go. Any thoughts?
Cheers,
Alex
---- Musings & Notes — http://alexvollmer.com Track what you lend and borrow — http://moochbot.com
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
---- http://alexvollmer.com http://moochbot.com
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hello Alex... I watched that peepcode screencast a couple of days ago and build the app from scratch with macruby 0.5. If it is of any help, I put the project directory on my ftp: ftp://witwenmacher.com/TwittRb.zip The app works so far, except for the "require 'cgi'" in TwittRbDelegate.rb. That one throws an ArgumentError in define_method. If you comment it out the application will run but be unable to send tweets. I wasn't able to find a solution for that yet. Cheers, Bjoern.
CGI isn't fully working on 0.5 yet, it's on the todo list tho. - Matt On Wed, Sep 16, 2009 at 6:12 PM, Bjoern Paschen <bpaschen@googlemail.com>wrote:
Hello Alex...
I watched that peepcode screencast a couple of days ago and build the app from scratch with macruby 0.5. If it is of any help, I put the project directory on my ftp:
ftp://witwenmacher.com/TwittRb.zip
The app works so far, except for the "require 'cgi'" in TwittRbDelegate.rb. That one throws an ArgumentError in define_method. If you comment it out the application will run but be unable to send tweets. I wasn't able to find a solution for that yet.
Cheers, Bjoern.
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hello Matt... Thanks for the info. I didn't check that list, I should do it right away. :) Cheers, Bjoern. Am 17.09.2009 um 03:17 schrieb Matt Aimonetti:
CGI isn't fully working on 0.5 yet, it's on the todo list tho.
- Matt
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Actually... it's in the "TODO" list, I'm not sure it's in the official todo list available in the repo. I'll check with Laurent to see what priority he wants to assign to that std lib. Thanks for the report and the 0.5 version of the example app. - Matt On Wed, Sep 16, 2009 at 6:21 PM, Bjoern Paschen <bpaschen@googlemail.com>wrote:
Hello Matt...
Thanks for the info. I didn't check that list, I should do it right away. :)
Cheers, Bjoern.
Am 17.09.2009 um 03:17 schrieb Matt Aimonetti:
CGI isn't fully working on 0.5 yet, it's on the todo list tho.
- Matt
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
On Sep 16, 2009, at Sep 16, 6:12 PM, Bjoern Paschen wrote:
Hello Alex...
I watched that peepcode screencast a couple of days ago and build the app from scratch with macruby 0.5. If it is of any help, I put the project directory on my ftp:
ftp://witwenmacher.com/TwittRb.zip
The app works so far, except for the "require 'cgi'" in TwittRbDelegate.rb. That one throws an ArgumentError in define_method. If you comment it out the application will run but be unable to send tweets. I wasn't able to find a solution for that yet.
I get the same error Bjoern does on an 10.5 installation with MacRuby 0.5, but the original nib-related errors are coming from MacRuby 0.5 running on Snow Leopard. Bjoern, what OS are you running this on? --Alex ---- http://alexvollmer.com http://moochbot.com
Hi Alex ... Am 17.09.2009 um 20:31 schrieb Alex Vollmer:
The app works so far, except for the "require 'cgi'" in TwittRbDelegate.rb. That one throws an ArgumentError in define_method. If you comment it out the application will run but be unable to send tweets. I wasn't able to find a solution for that yet. I get the same error Bjoern does on an 10.5 installation with MacRuby 0.5, but the original nib-related errors are coming from MacRuby 0.5 running on Snow Leopard. Bjoern, what OS are you running this on?
I am running this on OS X 10.6.1 with the newest MacRuby 0.5 and XCode 3.2 (64-bit). Cheers, Bjoern.
The incomplete CGI implementation seems to be causing the issue: $ macruby -e "require 'CGI'; puts CGI.escape('foo bar')" wrong number of arguments (1 for 0) (ArgumentError) I'll look into it tonight. - Matt On Thu, Sep 17, 2009 at 11:44 AM, Bjoern Paschen <bpaschen@googlemail.com>wrote:
Hi Alex ...
Am 17.09.2009 um 20:31 schrieb Alex Vollmer:
The app works so far, except for the "require 'cgi'" in
TwittRbDelegate.rb. That one throws an ArgumentError in define_method. If you comment it out the application will run but be unable to send tweets. I wasn't able to find a solution for that yet.
I get the same error Bjoern does on an 10.5 installation with MacRuby 0.5, but the original nib-related errors are coming from MacRuby 0.5 running on Snow Leopard. Bjoern, what OS are you running this on?
I am running this on OS X 10.6.1 with the newest MacRuby 0.5 and XCode 3.2 (64-bit).
Cheers, Bjoern.
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi ... Am 17.09.2009 um 20:51 schrieb Matt Aimonetti:
The incomplete CGI implementation seems to be causing the issue:
$ macruby -e "require 'CGI'; puts CGI.escape('foo bar')" wrong number of arguments (1 for 0) (ArgumentError)
I'll look into it tonight.
The app works now. Thank you guys :) Cheers, Bjoern.
Sorry I forgot to mention it was fixed :) Props to Vincent for fixing the define_method bug in a module. - Matt On Fri, Sep 18, 2009 at 11:54 PM, Bjoern Paschen <bpaschen@googlemail.com>wrote:
Hi ...
Am 17.09.2009 um 20:51 schrieb Matt Aimonetti:
The incomplete CGI implementation seems to be causing the issue:
$ macruby -e "require 'CGI'; puts CGI.escape('foo bar')" wrong number of arguments (1 for 0) (ArgumentError)
I'll look into it tonight.
The app works now. Thank you guys :)
Cheers, Bjoern.
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (3)
-
Alex Vollmer
-
Bjoern Paschen
-
Matt Aimonetti