[MacRuby-devel] Using macrubyd in Xcode

2011-06-03 Thread Shannon Love
Greetings, 

Am I correct in understanding that no means exist to use the macruby debugger 
from within Xcode? 

I realize that ruby depreciates the use of a debugger in favor of testing but 
using a debugger is invaluable when learning a language and I find a really 
miss having a debugger within Xcode. Are there any other debugging options 
available e.g. injecting the interpreter into the build? 

thanks,
Shannon Love


___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Could not connect button:

2011-06-03 Thread Bryan Goines
Hi all,

I am trying to understand and solve this issue. 

First of all, I did the following step by step:

1) Create a new project
2) added 'buttonClick(sender)' method to AppDelegate class in AppDelegate.rb -- 
like this

class AppDelegate
 attr_accessor :window
...
def buttonClick(sender)
puts "testing"
end
...
end

3) clicked MainMenu to open a GUI editor
4) dragged a button to the window.
5) open button's Connections Inspector and linked button to 'buttonClick'
6) Click Run button to build the app and execute app

The following error from Xcode 4's output console:

Could not connect the action buttonClick: to target of class AppDelegate

Any idea why am I getting this error and what did I do anything wrong?

Thanks!


-- 
Bryan
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Could not connect button:

2011-06-03 Thread [email protected]
Hi Bryan

Check out this quick walkthrough just to make sure you are doing everything 
correctly:

http://youtu.be/JbGqKf38QUI

If you can, go through that and let us know if you still get the same problem.

Aston

On 3 Jun 2011, at 16:41, Bryan Goines wrote:

> Hi all,
> 
> I am trying to understand and solve this issue. 
> 
> First of all, I did the following step by step:
> 
> 1) Create a new project
> 2) added 'buttonClick(sender)'  method to AppDelegate class in AppDelegate.rb 
> -- like this
> 
>   class AppDelegate
>attr_accessor :window
> ...
> def buttonClick(sender)
>   puts "testing"
> end
> ...
>   end
> 
> 3) clicked MainMenu to open a GUI editor
> 4) dragged a button to the window.
> 5) open button's Connections Inspector and linked button to 'buttonClick'
> 6) Click Run button to build the app and execute app
> 
> The following error from Xcode 4's output console:
> 
>   Could not connect the action buttonClick: to target of class AppDelegate
> 
> Any idea why am I getting this error and what did I do anything wrong?
> 
> Thanks!
> 
> 
> -- 
> Bryan
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Macgem path variable

2011-06-03 Thread Shannon Love
Greetings,

Does macgem use the same path variable as standard gem i.e. GEM_HOME and 
GEM_PATH? I'm trying to use rvm and I'm trying to figure out where macgem is 
actually putting gems. 

Thanks,
Shannon
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Using macrubyd in Xcode

2011-06-03 Thread Matt Aimonetti
That is correct to say that there is currently no debugger integration in
Xcode but it's on the roadmap.

- Matt

On Fri, Jun 3, 2011 at 8:28 AM, Shannon Love  wrote:

> Greetings,
>
> Am I correct in understanding that no means exist to use the macruby
> debugger from within Xcode?
>
> I realize that ruby depreciates the use of a debugger in favor of testing
> but using a debugger is invaluable when learning a language and I find a
> really miss having a debugger within Xcode. Are there any other debugging
> options available e.g. injecting the interpreter into the build?
>
> thanks,
> Shannon Love
>
>
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Could not connect button:

2011-06-03 Thread Bryan Goines
Aston,

Thanks for the youtube link. Unfortunately, I am getting same error, but I 
found a solution by deleting the project folder in 
~/Library/Developer/Xcode/DerivedData/ then re-run the Build. I am not getting 
that error anymore.

It might be a good tip for everyone who encounter the same issue.

Thanks! 
-- 
Bryan
Sent with Sparrow (http://bit.ly/sigsprw)

On Friday, June 3, 2011 at 10:56 AM, [email protected] wrote:

> Hi Bryan
> 
> Check out this quick walkthrough just to make sure you are doing everything 
> correctly:
> 
> http://youtu.be/JbGqKf38QUI
> 
> If you can, go through that and let us know if you still get the same problem.
> 
> Aston
> 
> On 3 Jun 2011, at 16:41, Bryan Goines wrote:
> > Hi all,
> > 
> > I am trying to understand and solve this issue. 
> > 
> > First of all, I did the following step by step:
> > 
> > 1) Create a new project
> > 2) added 'buttonClick(sender)' method to AppDelegate class in 
> > AppDelegate.rb -- like this
> > 
> > class AppDelegate
> >  attr_accessor :window
> > ...
> > def buttonClick(sender)
> > puts "testing"
> > end
> > ...
> > end
> > 
> > 3) clicked MainMenu to open a GUI editor
> > 4) dragged a button to the window.
> > 5) open button's Connections Inspector and linked button to 'buttonClick'
> > 6) Click Run button to build the app and execute app
> > 
> > The following error from Xcode 4's output console:
> > 
> > Could not connect the action buttonClick: to target of class AppDelegate
> > 
> > Any idea why am I getting this error and what did I do anything wrong?
> > 
> > Thanks!
> > 
> > 
> > -- 
> > Bryan
> > ___
> > MacRuby-devel mailing list
> > [email protected] 
> > (mailto:[email protected])
> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> ___
> MacRuby-devel mailing list
> [email protected] (mailto:[email protected])
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Macgem path variable

2011-06-03 Thread denny trebbin
$ macgem environment


will show the path and other useful information about your macruby installation.



Von: Shannon Love 
An: MacRuby development discussions. 
Gesendet: 18:19 Freitag, 3.Juni 2011 
Betreff: [MacRuby-devel] Macgem path variable

Greetings,

Does macgem use the same path variable as standard gem i.e. GEM_HOME and 
GEM_PATH? I'm trying to use rvm and I'm trying to figure out where macgem is 
actually putting gems. 

Thanks,
Shannon
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Scripting Terminal.app with ScriptingBridge

2011-06-03 Thread Eric Christopherson
On Thu, Jun 2, 2011 at 8:43 PM, Scott Thompson  wrote:
>>
>> I'm playing around with Scripting Bridge trying to script
>> Terminal.app. I'm running into issues with adding a new tab to a
>> window, and was hoping someone could point me in the right direction.
>> Consider this gist: https://gist.github.com/1005066
>>
>> The only information I could find that was remotely similar was doing
>> something similar with Safari here:
>> http://stackoverflow.com/questions/2912161/new-tab-in-safari-window-from-cocoa-and-scripting-bridge
>> I tried converting that over to MacRuby, and I get the same error as
>> when I try my gist above.
>>
>> RuntimeError: NSInvalidArgumentException: *** -[SBElementArray
>> addObject:]: can't add an object that already exists.
>>
>> Hopefully I'm just doing something silly?
>
> From what I've been able to find on the Web, the terminal app doesn't allow 
> you to create a new tab using AppleScript (directly).  Instead what you have 
> to do is address the System Events application and use it to issue a "cmd-T" 
> command.

For an example of scripting Terminal this way, see Terminitor
.

>
> I would also report a bug against Terminal.app on bugreport.apple.com.
>
> Scott
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Macgem path variable

2011-06-03 Thread Mark Rada
If you are using rvm, then macruby gems are installed into 
~/.rvm/gems/macruby-VERSION@GEMSET or something like that.




Mark Rada
[email protected]



On 2011-06-03, at 12:19 PM, Shannon Love wrote:

> Greetings,
> 
> Does macgem use the same path variable as standard gem i.e. GEM_HOME and 
> GEM_PATH? I'm trying to use rvm and I'm trying to figure out where macgem is 
> actually putting gems. 
> 
> Thanks,
> Shannon
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Macgem path variable

2011-06-03 Thread Shannon Love
Well, they should be but that is what I am checking. 

Shannon
On Jun 3, 2011, at 12:26 PM, Mark Rada wrote:

> If you are using rvm, then macruby gems are installed into 
> ~/.rvm/gems/macruby-VERSION@GEMSET or something like that.
> 
> 
> 
> 
> Mark Rada
> [email protected]
> 
> 
> 
> On 2011-06-03, at 12:19 PM, Shannon Love wrote:
> 
>> Greetings,
>> 
>> Does macgem use the same path variable as standard gem i.e. GEM_HOME and 
>> GEM_PATH? I'm trying to use rvm and I'm trying to figure out where macgem is 
>> actually putting gems. 
>> 
>> Thanks,
>> Shannon
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel