Re: [MacRuby-devel] Basic delayed email method

2012-10-23 Thread Mark Rada
draft = drafts_folder.messages.first >> >> I need to use the send method somehow. I think I need to make a new >> MailOutgoingMessage but I would like to make this message based on my >> already existing draft message. >> >> Any know how this is done? >&

Re: [MacRuby-devel] GC warnings playing sound files

2012-10-21 Thread Mark Rada
Hi Rob, That smells suspiciously like a GC bug on Apple's end of things; though it might be a bug in MacRuby. You could find out by writing the same code in Objective-C, then compile with GC and test it out. On 2012-10-21, at 3:37 PM, Robert Carl Rice wrote: > Hi, > > I recentlyadded so

Re: [MacRuby-devel] Quartz 2D Graphics problem

2012-10-21 Thread Mark Rada
Adding some Objective-C code could be done with a framework as suggested, or by creating a bundle. The bundle process is essentially the same as creating a C extension for Ruby. Any MacRuby project with a C extension could be used as an example: https://github.com/pieter/macruby-bundle-example

Re: [MacRuby-devel] Basic delayed email method

2012-10-20 Thread Mark Rada
in > Xcode 4. Xcode will follow the link to mail and include all of your mailboxes > in the snapshot. I don't know if there is a way to stop this behavior. > > Bob Rice > > On Oct 19, 2012, at 6:50 PM, Mark Rada wrote: > >> Busy looping for an hour would be really b

Re: [MacRuby-devel] Basic delayed email method

2012-10-19 Thread Mark Rada
Busy looping for an hour would be really bad. I assume you would have a sleep in there, but then you're still polling. If you are using MacRuby, looking at the GCD API would be a good idea. You could do something like this: def schedule_email q q.after(3600) do # Send email

Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store

2012-10-19 Thread Mark Rada
Congratulations on shipping! The idea of a new TCP level chat protocol is neat. On 2012-10-19, at 2:22 PM, J Silver wrote: > Hi MacRuby! > > GlobalChat2, client and server, are now available in the Mac App Store > > https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12 > htt

Re: [MacRuby-devel] Quartz 2D Graphics problem

2012-10-18 Thread Mark Rada
Hey Jim, What version of OS X are you running things on? On 2012-10-18, at 9:50 PM, Robert Carl Rice wrote: > Hi Jim, > > Adding those frameworks didn't fix my BridgeSupport problem. Have you tried > to build your project with the most recent nightly build? > > Thanks, > Bob Rice > > > On

Re: [MacRuby-devel] Quartz 2D Graphics problem

2012-10-17 Thread Mark Rada
It seems as though the BridgeSupport definition of CGContextRef is missing. At this point, I'm not sure where it should be coming from, documentation indicates ApplicationServices.framework, but it's not in there. On Mountain Lion, we have a similar problem with some CoreGraphics definitions mi

Re: [MacRuby-devel] environment variables

2012-10-17 Thread Mark Rada
Ok, so it looks like you are setting the environment variable from the Terminal.app, and then running the app from Xcode or launching from Finder. If that's the case, then what you export from the Terminal would not be available to apps. Exported variables will only be available to descendant p

Re: [MacRuby-devel] environment variables

2012-10-17 Thread Mark Rada
Hi Erik, Are you trying to access the environment variables from inside an app or just another script? Can you also tell me what version of MacRuby you are using? Thanks, Mark On 2012-10-17, at 11:39 AM, Erik Lundqvist wrote: > Dear all, > > Started playing with MacRuby again and I

Re: [MacRuby-devel] Xcode 4.5 not updating MacRuby Outlets

2012-10-03 Thread Mark Rada
The nightly build installer is now installing Xcode support as it should. Thanks again for reporting the issue. -- Mark On 2012-10-01, at 12:47 PM, Mark Rada wrote: > Hi guys, > > The macruby_install_xcode_support should be getting called at install time. > When I run the ins

Re: [MacRuby-devel] Xcode 4.5 not updating MacRuby Outlets

2012-10-01 Thread Mark Rada
Hi guys, The macruby_install_xcode_support should be getting called at install time. When I run the installer I can see in the system log that the script is called, but it doesn't seem to do anything. I'll investigate, thanks for bringing it up. -- Mark On 2012-10-01, at 12:24 PM, Jonathan Sil

Re: [MacRuby-devel] macruby_deploy

2012-09-28 Thread Mark Rada
acruby_deploy" > instead of an executable. I get "command not found" trying to run > macruby_deploy. > > Thanks, > Bob Rice > > > On Sep 28, 2012, at 9:14 AM, Mark Rada wrote: > >> Hi Bob, >> >> Could you elaborate more on the first

Re: [MacRuby-devel] macruby_deploy

2012-09-28 Thread Mark Rada
Hi Bob, Could you elaborate more on the first issue? That seems like a regression but I didn't have that issue myself. Also, could you please open it as a ticket on github? The second issue I can confirm, but that code hasn't changed recently, so I think that bug has been there for quite some t

Re: [MacRuby-devel] macruby_deploy

2012-09-20 Thread Mark Rada
Hi guys, I have no bundled anything for the app store myself, but I recall something from earlier this year. The email thread can be found here: http://lists.macosforge.org/pipermail/macruby-devel/2012-June/008841.html HTH, Mark On 2012-09-20, at 3:50 PM, Robert Carl Rice wrote: > H

Re: [MacRuby-devel] MacRuby.h not found

2012-06-12 Thread Mark Rada
The problem is that /Library/Frameworks is no longer in the default search path for frameworks. The workaround is simply to add it back to the "Framework Search Paths" in the project settings. We're tracking this issue on Github: https://github.com/MacRuby/MacRuby/issues/107 On 2012-06-12, a

Re: [MacRuby-devel] Appstore rules on symlinks Macruby

2012-06-08 Thread Mark Rada
Hi Rob, Someone else opened a ticket on Github that describes the same problem that you were having (https://github.com/MacRuby/MacRuby/issues/101). I've taken a stab at fixing the issue and the nightly build of MacRuby seems to have gotten past this problem. Granted, I did the minimum amount w

Re: [MacRuby-devel] Double module included

2012-05-10 Thread Mark Rada
Hi Dave, Yes, this is a known bug in MacRuby. Here is the open ticket: http://www.macruby.org/trac/ticket/1403 Cheers, Mark On 2012-05-10, at 5:09 PM, Dave Lee wrote: > Hi, > > Can anyone tell me, is this a MacRuby bug? > > module A; end > module B; include A; end > class C; includ

Re: [MacRuby-devel] Appstore rules on symlinks Macruby framework hanged ?

2012-05-07 Thread Mark Rada
macruby_deploy fiddles with the version symlinks on purpose. We changed it in the past for app store guidelines at some point; you should be able to see it in the history of macruby_deploy. It would be fastest to just revert that change and see if that fixes things. Though if Apple really want

Re: [MacRuby-devel] Failing installers

2012-05-02 Thread Mark Rada
, stephen horne wrote: > Ok, thanks. Xcode is installed, and I don't remember doing anything funny to > it, but it's entirely possible I broke it somehow as much of it is beyond my > understanding - I will see if I can figure it out and log a bug if I do. > > fb > > On

Re: [MacRuby-devel] Failing installers

2012-05-02 Thread Mark Rada
The script might fail if you do not have Xcode installed or something is unusual about your Xcode setup. To answer your other question, everything except Xcode integration should be installed by the time that the failing script is run. Also, if it turns out to be something with your setup of

Re: [MacRuby-devel] Multiple enumerations

2012-05-02 Thread Mark Rada
If you do want to go the way of Quartz, I've already created a layer above it that you may want to use. The gem: https://rubygems.org/gems/AXTyper Example Usage: irb(main):001:0> require 'rubygems' irb(main):002:0> require 'accessibility/string' irb(main):003:0> include Accessibility::String i

Re: [MacRuby-devel] The future of MacRuby

2012-04-05 Thread Mark Rada
Opening the flood gates to new contributors sounds great. I have been having less and less free time as of late and haven't been able to keep up with the few things I do to contribute. Watson has been carrying the project almost entirely by himself for the last few months. MacRuby is a large pro

Re: [MacRuby-devel] Sequel gem does not install

2012-03-16 Thread Mark Rada
Hi Wladjmir, Is the failure you are experiencing consistent? I've just tried installing sequel a few times using the nightly build and not had any issues. Looking into the rubygems source, the only direct calls to #to_str are guarded by checking if the object responds to #to_str first, so the c

Re: [MacRuby-devel] Including Bridge Support into App

2012-02-28 Thread Mark Rada
Hi Kevin, Have you had any luck figuring out the issue? If not, I think it might be worth opening at ticket against MacRuby with some more details (i.e. crash logs, sample code/project). Posting the info to the mailing list might be even more helpful. -- Mark On 2012-02-26, at 7:44 PM, James

Re: [MacRuby-devel] Including Bridge Support into App

2012-02-24 Thread Mark Rada
You should be able to pass the --bs option to macruby_deploy in your Deploy target. On 2012-02-24, at 2:56 PM, Kevin Colyar wrote: > Anyone know if there's a way to include Bridge Support Preview 3 into my > MacRuby app so users before 10.7 doing need to install Bridge Support > separately?

Re: [MacRuby-devel] 'rake spec:ci' causing crash (built from HEAD)

2012-02-18 Thread Mark Rada
Hi Andy, I believe Watson is already tracking output from running spec:ci on MacRuby every night. https://github.com/Watson1978/macruby-test Is that what you were looking for? On 2012-02-17, at 9:59 PM, Andy Park wrote: > Hi, > > I've only recently started compiling the HEAD version, mainl

Re: [MacRuby-devel] Rubygems version

2012-02-07 Thread Mark Rada
I'm not sure if any specific "training" is possible. The first thing you might want to do is try to run the rubygems test suite under MacRuby, just to see if it even runs. I tried it, one test crashed, but it finished and here are the results for me: 882 tests, 2489 assertions, 34 failures, 113

Re: [MacRuby-devel] HotCocoa futures

2011-12-26 Thread Mark Rada
On 2011-12-24, at 5:00 AM, Jordan K. Hubbard wrote: > > On Dec 24, 2011, at 5:01 AM, Mark Rada wrote: > >> "Do we want to front end all the AppKit classes?" No, not unless it can >> be justified, and I don't think it can. Also, while AppKit may have

Re: [MacRuby-devel] HotCocoa futures

2011-12-23 Thread Mark Rada
nths, so I'll have more time for HotCocoa again. We have plans to improve documentation and promote the project in the next year, and hopefully that will help answer these questions in better detail. HTH, Mark Rada On 2011-12-23, at 4:21 PM, isaac kearse wrote: > Hi Rich

Re: [MacRuby-devel] [ANN] HotCocoa gets reheated

2011-10-14 Thread Mark Rada
Hi Jordan, You should be filing bugs on github: https://github.com/ferrous26/hotcocoa/issues I've been able to run my own small apps as well as the example apps, on Lion, with MacRuby 0.11. But if you log a bug with details then I will be happy to look at it. Thanks, Mark On 2011-10

[MacRuby-devel] [ANN] HotCocoa gets reheated

2011-10-13 Thread Mark Rada
Hey all, I have some wonderful news. Over the past several months I've been working on a fork of HotCocoa. With the help of other contributors (Watson, Isaac, Jake, Bernard, Francesco, Jason, and all the past contributors), it is now time for a new release of HotCocoa. The best part is that it

Re: [MacRuby-devel] REXML UTF-8 Encoding not found

2011-10-07 Thread Mark Rada
Hi Mark, > > Thanks for the reply. If I were to roll back to a nightly build could you > estimate what date I should be looking for? > > Thank you, > > Shaun > > > On 2011-10-07, at 2:36 PM, Mark Rada wrote: > >> Hi Shaun, >> >> The prob

Re: [MacRuby-devel] REXML UTF-8 Encoding not found

2011-10-07 Thread Mark Rada
Hi Shaun, The problem here is that "rexml/encoding.rb" is trying to load "UTF-8.rb". The problem is that files should not include the file extension when requiring a file or else it will always load the .rb file and have to JIT the code instead of loading the .rbo file and use the already compi

Re: [MacRuby-devel] Problems with MacRuby 0.10 and rspec 2.6.4 under rvm

2011-10-07 Thread Mark Rada
Hi Ernie, IIRC, this has come up recently (in the last few months), and we found that there was a change in rspec 2.6 that does not work with MacRuby 0.10, but rspec 2.5 still does. Though, I tried your example with the latest nightly build of MacRuby and used rspec 2.6 and had no issues. HTH

Re: [MacRuby-devel] [ANN] AXElements: UI Automation with MacRuby

2011-09-29 Thread Mark Rada
so an arguably evil freedom patch to NSArray that would let you do this: ui.menu_extras.descriptions Which I think is a bit more succinct… On 2011-09-29, at 9:17 PM, Mark Rada wrote: > Hmm, that bug sounds like it could be the culprit, but I haven't checked. I'm > bu

Re: [MacRuby-devel] [ANN] AXElements: UI Automation with MacRuby

2011-09-29 Thread Mark Rada
find mine, I can't ... is there any way to list all the menu_extra > descriptions that AX can see? That way I can confirm that I'm not just going > after the wrong description. > > Thanks! > > Brice Ruth, FCD > Software Engineer, Madison WI > > > On Thu, Sep

Re: [MacRuby-devel] [ANN] AXElements: UI Automation with MacRuby

2011-09-29 Thread Mark Rada
t to open the > windows when launched versus via clicking a menuitem from the NSStatusBar > menu? > > Brice Ruth, FCD > Software Engineer, Madison WI > > > On Thu, Sep 29, 2011 at 9:55 AM, Mark Rada wrote: > Hey all, > > On behalf of Marketcircle Inc., I am

[MacRuby-devel] [ANN] AXElements: UI Automation with MacRuby

2011-09-29 Thread Mark Rada
get it now: macgem install AXElements --pre And then require 'ax_elements' to get started in macirb or a script. Source: http://github.com/Marketcircle/AXElements Documentation (including some tutorials): http://rdoc.info/github/Marketcircle/AXElements/master/frames/file/README.markdown

Re: [MacRuby-devel] XCode 4 error

2011-09-11 Thread Mark Rada
MacRuby does not work with Xcode 4.1, but it OS working with 4.2 betas. Check out macruby.org/trac/ticket/1322 Sent from my iDevice On 2011-09-11, at 12:13, Rob Gleeson wrote: > > On 11 Sep 2011, at 16:30, Timothy Hart wrote: > >> For some reason it started working on a reboot. So far so goo

Re: [MacRuby-devel] Using the Twitter gem in a MacRuby application

2011-09-11 Thread Mark Rada
Yes, you simply need to use the --embed-gem option when deploying. Check out the macruby_deploy man page for details. Sent from my iDevice On 2011-09-11, at 12:06, Mark Szymanski wrote: > How would I go about using the Twitter > (https://github.com/jnunemaker/twitter) gem with MacRuby? I wan

Re: [MacRuby-devel] New warning message

2011-08-20 Thread Mark Rada
I've also noticed the same problem when using the james gem on Lion. I'm not sure if I logged a bug (this was prior to Lion's official release). It also wouldn't be the only GC warning that MacRuby has on Lion right now. Could you log a bug against MacRuby for this issue? Thanks, Mark

Re: [MacRuby-devel] macruby_deploy problem with app having space in name

2011-07-21 Thread Mark Rada
t;>> *** Compiling files >>> /usr/bin/lipo: can't open input file: Gmail (No such file or directory) >>> Can't compile "Gmail >>> Notifr.app/Contents/Resources/AccountDetailController.rb" >>> >>> Thanks in advance! :) >>&

Re: [MacRuby-devel] macruby_deploy problem with app having space in name

2011-07-20 Thread Mark Rada
Oopsie, I'll get that fixed in a few moments...unless it's fixed by the time I finish this email. Sent from my iDevice On 2011-07-20, at 23:30, James Chen wrote: > Hey guys, > > I have an app with a space in the name. macruby_deploy fails to do its job: > > > $ macruby_deploy --compile --e

Re: [MacRuby-devel] How do people deal with macgem overwriting MRI gem binaries?

2011-06-30 Thread Mark Rada
this problem. However, it comes with its own set of trade-offs. Mark Rada mr...@marketcircle.com On 2011-06-30, at 10:07 PM, isaac kearse wrote: > At the moment macgem will prompt the user with this warning when > trying to install nokogiri (if you have already installed it

Re: [MacRuby-devel] Fwd: Installing MacRuby HEAD with RVM

2011-06-30 Thread Mark Rada
On 2011-06-30, at 2:28 AM, Eric Christopherson wrote: > On Wed, Jun 29, 2011 at 9:25 PM, Mark Rada wrote: >> I don't actually use rvm to build HEAD, since I have my llvm setup >> differently and because I have other changes to MacRuby; however, I do use >> HEAD with rvm

Re: [MacRuby-devel] Fwd: Installing MacRuby HEAD with RVM

2011-06-29 Thread Mark Rada
at it will really be symlinked to macruby-head Note that you will need to re-install macruby-nightly through rvm each time the macruby version number gets bumped to fix the symlinks again. Also, step 3 is optional. Other than that, it should be smooth sailing. Mark Rada mr...@marketcircle.com

Re: [MacRuby-devel] I don't normally plug the mailing list, but when I do it's for gemaholics

2011-06-20 Thread Mark Rada
SMenu. That is just my two cents, though. Mark Rada mr...@marketcircle.com On 2011-06-20, at 2:16 AM, Robert Lowe wrote: > Ah, I understand. > > I think rubygems is still the best source: > > Try searching for `macruby`: > > https://rubygems.org/search?utf8=%E2%9C%93&qu

Re: [MacRuby-devel] MacRuby objects in IB in Xcode4

2011-06-12 Thread Mark Rada
It sounds like you have both Xcode 3 and Xcode 4 on your system. Only the one installed to /Developer will get the MacRuby support in IB. Sent from my iDevice On 2011-06-12, at 17:05, Jakub Suder wrote: > On Sun, Jun 12, 2011 at 12:27, Eloy Duran wrote: >> Are you defining the ‘action’ metho

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 mr...@marketcircle.com 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

Re: [MacRuby-devel] CGRectZero

2011-05-22 Thread Mark Rada
They will also need BridgeSupport if they are on Snow Leopard. Lion will come with the new Bridge Support. As pointed out, you can embed the new Bridge Support in your app. Mark Rada mr...@marketcircle.com On 2011-05-22, at 10:02 AM, Jason Voegele wrote: > On May 22, 2011, at 9:50 AM, P

Re: [MacRuby-devel] Does MacRuby Play Well with RVM?

2011-05-21 Thread Mark Rada
The topic is rvm with MacRuby, so it is a relevant point. And the problem is not just MacRuby, but both are being actively developed right now so the point is kind of moot. Mark Rada mr...@marketcircle.com On 2011-05-21, at 11:42 PM, Chris Rhoden wrote: > This is a problem with MacRuby,

Re: [MacRuby-devel] Does MacRuby Play Well with RVM?

2011-05-21 Thread Mark Rada
ll eventually go away, but not any time soon. For me, this is a "real" reason for using rvm, but this may not be the case for everyone. Mark Rada mr...@marketcircle.com On 2011-05-21, at 10:04 PM, Chris Rhoden wrote: > The point of my email was: > > Use RVM to install

Re: [MacRuby-devel] Does MacRuby Play Well with RVM?

2011-05-20 Thread Mark Rada
I have been using rvm with MacRuby a while now, mostly for the use of gemsets. I have been able to switch between MacRuby 0.10 and the "nightly" builds without issue including several different gemsets for "nightly" builds. However, there will be issues if you are developing with Xcode. But the

Re: [MacRuby-devel] Rspec Stopped Running Under Macruby

2011-05-20 Thread Mark Rada
f nobody is -- lmk pls. That sounds interesting and potentially very useful, but not too difficult to do. Unfortunately I am already in the middle of too many different projects so I wouldn't be able to help much. :( > > thx, n@ > Good luck, Mark Rada mr...@marketcircle.com &g

Re: [MacRuby-devel] Rspec Stopped Running Under Macruby

2011-05-20 Thread Mark Rada
may wish to add a comment there about rspec. Mark Rada mr...@marketcircle.com On 2011-05-20, at 2:50 PM, Shannon Love wrote: > Christian, > > Reverting to Rspec 2.5 allowed rspec to run under macruby (so far.) However, > it is extremely slow compared to running under system ru

Re: [MacRuby-devel] macruby_deploy error while compiling files

2011-05-05 Thread Mark Rada
ocoa takes more than 1 second by itself. Also, I am very interested in helping with a test suite for ruby_deploy as there are other changes I'd like to make to it; I was having a bit of difficulty getting started due to how ruby_deploy wants to load the compiler. Please let me know how I can

Re: [MacRuby-devel] MiniTest and TestUnit implementations

2011-05-04 Thread Mark Rada
y and then change so it counts the number of tests. Test::Unit in Ruby 1.9 is just a compatibility layer to minitest, so they are really the same thing for what you are asking about. FWIW, rspec has proper custom formatters that support exactly what you have asked about. HTH, Mark Ra

[MacRuby-devel] Hot Cocoa

2011-04-29 Thread Mark Rada
resting way to learn more about Cocoa (which I am still getting the hang of). Mark Rada mr...@marketcircle.com ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Building an application package

2011-04-29 Thread Mark Rada
I'm not sure, I've haven't gotten that far with updating hot cocoa. My understanding is that the menu comes from the nib file or code, not part of the app builder. Mark Rada mr...@marketcircle.com On 2011-04-29, at 12:18 PM, Eloy Duran wrote: > Didn't HotCocoa apps

Re: [MacRuby-devel] Building an application package

2011-04-29 Thread Mark Rada
There is also the application builder for hot cocoa. Except for needing a config file, you can use it without the rest of hot cocoa. Mark Rada mr...@marketcircle.com On 2011-04-29, at 10:47 AM, Eloy Duran wrote: > PS every now and then I work on getting my command-line builder to > w

Re: [MacRuby-devel] Validating App Store binaries

2011-04-10 Thread Mark Rada
fail for someone, there is a comment in the source explaining that. I'm not sure why the headers are not included by default, a dev might be able to answer that question. Mark Rada mr...@marketcircle.com On 2011-04-10, at 9:24 PM, Chris Lloyd wrote: > Hi, > > I'm trying

Re: [MacRuby-devel] Bug in string comparison?

2011-04-06 Thread Mark Rada
Nevermind. The problem is not related to the string class, I'm just dumb and didn't realize I created a literal array. Mark Rada mr...@marketcircle.com On 2011-04-07, at 12:12 AM, Mark Rada wrote: > I've got a strange behaviour during string comparison that boils down t

[MacRuby-devel] Bug in string comparison?

2011-04-06 Thread Mark Rada
# => "?" puts '?'[-1] == '?'# => true I'm not sure if this is a known side effect of how Strings are implemented now or if it is simply a bug. I know it will work if I use a regexp, but this method

Re: [MacRuby-devel] Moving to GitHub!

2011-03-25 Thread Mark Rada
I've made pull request type things in the form of trac tickets, should I make pull requests for those tickets now or leave them them as tickets? Sent from my iDevice On 2011-03-26, at 12:55 AM, Matt Aimonetti wrote: > If you were willing to contribute but didn't feel like using SVN, you can >

Re: [MacRuby-devel] Proposal: splitting macrubyc UI from logic

2011-03-23 Thread Mark Rada
Done, with some benchmarks: http://www.macruby.org/trac/ticket/1204 Mark Rada mr...@marketcircle.com On 2011-03-23, at 5:20 PM, Laurent Sansonetti wrote: > Hi Mark, > > Sorry for the late reply. > > Could you file at ticket and add a link to the changes on github? I will lo

Re: [MacRuby-devel] Proposal: splitting macrubyc UI from logic

2011-03-14 Thread Mark Rada
where calling the compiler directly will have benefit, such as a rake task or during gem installation. Perhaps I am speaking for a minority in these two cases Sent from my iDevice > Laurent > > On Mar 12, 2011, at 5:40 PM, Mark Rada wrote: > >> Hi, >> >> I hav

[MacRuby-devel] Proposal: splitting macrubyc UI from logic

2011-03-12 Thread Mark Rada
0.25 seconds; so I think the patch is still useful in the general case. The code for the changes is located in my MacRuby fork on github: https://github.com/ferrous26/MacRuby/tree/libify-rubyc Mark Rada mr...@marketcircle.com ___ MacRuby-devel mailing

[MacRuby-devel] Potential macirb issue

2011-03-10 Thread Mark Rada
ect should be frozen, but should I be making #to_s return a mutable/unfrozen string? Mark Rada mr...@marketcircle.com ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Documentation

2011-03-05 Thread Mark Rada
+1 for more documentation. More documentation is always a good thing. Sent from my iDevice On 2011-03-04, at 12:43 PM, Matt Aimonetti wrote: > I think that would be awesome! > > - Matt > > Sent from my iPhone > > On Mar 4, 2011, at 5:13, Martin Hawkins wrote: > >> Is it something that woul

Re: [MacRuby-devel] macruby_deploy --gem

2011-03-01 Thread Mark Rada
/ doc/ gems/specifications/ I think you only need the specifications and gems directory for things to work, but I am not sure. Mark Rada mr...@marketcircle.com On 2011-03-01, at 10:00 PM, Russ McBride wrote: > > oh, the command I'm using in my b

Re: [MacRuby-devel] Towards a compile option for macgem

2011-02-19 Thread Mark Rada
that are normally bundled in a gem. This is turning out to be a much more complicated topic than I thought it would be. lol -- Mark Rada mr...@marketcircle.com On 2011-02-19, at 3:21 PM, Matt Aimonetti wrote: > Hey Mark, I think this is an interesting concept but I would encourage you to

[MacRuby-devel] Towards a compile option for macgem

2011-02-19 Thread Mark Rada
but I was wondering what the communities thoughts were about compiling gems; especially since the gemspec option won't work if the community never uses it. The repo is located at https://github.com/ferrous26/rubygems-compile -- Mark Rada mr...@m

Re: [MacRuby-devel] MacRuby classes delete/overwrite Objective-C classes?

2011-02-11 Thread Mark Rada
the answer is no ;) > > - Matt > > Sent from my iPhone > > On Feb 11, 2011, at 17:00, Mark Rada wrote: > >> Hi Robert, >> >> Classes in ruby are open, which means that if you define it in multiple >> places, you get one class with things from all the definitio

Re: [MacRuby-devel] MacRuby classes delete/overwrite Objective-C classes?

2011-02-11 Thread Mark Rada
Hi Robert, Classes in ruby are open, which means that if you define it in multiple places, you get one class with things from all the definitions definitions. However, if you define the same methods, then which ever method you define last is the one that will exist. There are also techniques fo

Re: [MacRuby-devel] book idea - "making it look like Ruby"

2011-02-04 Thread Mark Rada
they don't have versions of the method that takes a block. It seems to be broken right now (logged a bug the other day). Mark Rada mr...@marketcircle.com On 2011-02-04, at 3:57 PM, Caio Chassot wrote: > On 2011-02-04, at 01:26 , Rich Morin wrote: >> >> One of my conce

[MacRuby-devel] Strange behaviour when using a Proc for a callback

2011-02-02 Thread Mark Rada
e reason I am not getting the notification back as I should, instead I am getting a reference to the NSDictionary class. I don't think this is the intended behaviour in MacRuby, but I'm not sure if what I am trying to do is supported. Is the ability to use a proc as a callback a s

[MacRuby-devel] Array and NSMutableArray mutability

2011-01-30 Thread Mark Rada
th types of arrays work the same way? An instance of NSMutableArray says its class is Array, so I thought that they would. Also, is this type of exception one that should be caught by the VM and propagated as a normal Ruby Exception that I could rescue? Mark Rada mr..

Re: [MacRuby-devel] What's happened to Dispatch::Job?

2011-01-20 Thread Mark Rada
meone who has better knowledge than me might be able to answer your questions more thoroughly. Mark Rada mr...@marketcircle.com On 2011-01-20, at 9:48 AM, Martin Hawkins wrote: > I was looking at the short intro to GCD in Matt's book 'Macruby - The > Definitive Guide' >

Re: [MacRuby-devel] BridgeSupport Preview 3 released

2011-01-18 Thread Mark Rada
Hey, I was wondering if there was an easy way to tell if a machine has the new bridge support installed without resorting to begin/rescue/end? Mark Rada mr...@marketcircle.com On 2011-01-18, at 8:15 PM, Laurent Sansonetti wrote: > Hi guys, > > The 3rd preview release of BridgeS

Re: [MacRuby-devel] macgem now upgraded to rubygems 1.4.1

2011-01-09 Thread Mark Rada
gt; MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel Mark Rada mr...@marketcircle.com ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Test First

2011-01-02 Thread Mark Rada
Rspec2 will work in some cases, have different behaviour from CRuby sometimes, and segfault other times. I just started playing with Rspec2 recently and intend to log more bugs when I can reduce them. On 2010-12-31, at 10:04 PM, Matt Aimonetti wrote: > RSpec2 should be working, I'm not sure a

Re: [MacRuby-devel] Trying to add Bonjour to a ControlTower app

2010-12-15 Thread Mark Rada
ould work (might even make a good > addition to the sample/ directory). > > Cheers, > > Josh > > > On Dec 14, 2010, at 7:30 PM, Mark Rada wrote: > >> Hi Laurent, >> >> In my case I can ignore a lot of what the low level stuff since Control &g

Re: [MacRuby-devel] Trying to add Bonjour to a ControlTower app

2010-12-14 Thread Mark Rada
low level BSD socket structures are not yet covered by > BridgeSupport. > > We could eventually add them to the libSystem BridgeSupport file, however I > wonder if there isn't an easier way to use Bonjour from MacRuby. > > Laurent > > On Dec 12, 2010, at 8:09

[MacRuby-devel] Trying to add Bonjour to a ControlTower app

2010-12-12 Thread Mark Rada
Hi, For a distributed web service I am trying to add Bonjour support, but I ran into trouble with the Bridge Support when trying out one of the examples from the NSNetServices Programming Guide[1]. When publishing, I am supposed to get some socket info from a BSD sockaddr structure[2], but I c

[MacRuby-devel] README for lib/dispatch

2010-12-08 Thread Mark Rada
Hi, I noticed the the lib/dispatch layer got removed yesterday. It had a README file that documented the Dispatch module quite well. Is there any chance of getting that file back since the Dispatch is still in MacRuby? Or will I have to go back to a state before it was removed? Thanks, Ma

Re: [MacRuby-devel] Getting a pointer to a boxed type

2010-12-02 Thread Mark Rada
GPointType, point_ptr ) > point = point_ptr[0] > > Basically, you want to pass a pointer to a CGPoint to the API. > > Laurent > > On Dec 1, 2010, at 10:16 PM, Mark Rada wrote: > >> Hi, >> >> With the recent closing of ticket #1002 I have been

[MacRuby-devel] Getting a pointer to a boxed type

2010-12-01 Thread Mark Rada
Hi, With the recent closing of ticket #1002 I have been trying to take a bunch of Objective-C code and write it in MacRuby. One problem that I have run into is with the AXValueGetValue() function in AXValue.h. The last argument to the function is supposed to be the address of a structure to po

Re: [MacRuby-devel] restclient gem with MacRuby

2010-11-27 Thread Mark Rada
:37 PM, Matt Aimonetti wrote: > Do you have the full stack trace? > > Sent from my iPhone > > On Nov 27, 2010, at 15:08, Mark Rada wrote: > >> Hi, >> >> I'm using the nightly builds of MacRuby and have not been able to load the >> restclient gem.

[MacRuby-devel] restclient gem with MacRuby

2010-11-27 Thread Mark Rada
Hi, I'm using the nightly builds of MacRuby and have not been able to load the restclient gem. I always get an error: ArgumentError: invalid string transliteration But it doesn't really give me a good hint where to look to find the problem. I took a quick look at the source but nothing jumped

Re: [MacRuby-devel] Weird behaviour for a weird line of code

2010-11-15 Thread Mark Rada
On 2010-11-15, at 4:50 PM, Ryan Davis wrote: > > On Nov 14, 2010, at 18:37 , Mark Rada wrote: > >> Now, when I try this out in macirb: (Case #3) >> >> require 'uri' >> test = URI.parse url unless (url = 'http://macruby.org/').nil?

[MacRuby-devel] Weird behaviour for a weird line of code

2010-11-14 Thread Mark Rada
Hey, I wrote a line of code that I thought was correct (but maybe not so pretty) and in one case it was giving me a weird error. I was wondering if someone could explain to me what is wrong with it; I suspect there is some behaviour of MacRuby that I am not understanding. Here are a few example

Re: [MacRuby-devel] Understanding Pointer objects

2010-10-26 Thread Mark Rada
On 2010-10-25, at 11:39 PM, Laurent Sansonetti wrote: > Hi Mark, > >> Ah, that does work, and seems to have worked for a number of other things I >> am trying to do. >> >> The only problem now is when I have something like >> >> value = Pointer.new '^v' # pointer to pointer to void >>

Re: [MacRuby-devel] Understanding Pointer objects

2010-10-24 Thread Mark Rada
On 2010-10-24, at 9:34 PM, Laurent Sansonetti wrote: > Hi Mark, > > Matt already replied but I thought I would give more info. > > On Oct 23, 2010, at 10:04 PM, Mark Rada wrote: > >> Hi, >> >> I've been trying to play with using the Accessibi

Re: [MacRuby-devel] Understanding Pointer objects

2010-10-24 Thread Mark Rada
my book draft with a section on pointers. > > - Matt > > > On Sat, Oct 23, 2010 at 10:04 PM, Mark Rada wrote: > Hi, > > I've been trying to play with using the Accessibility API to do some > automated testing. > > >From what I have researched, I have t

[MacRuby-devel] Understanding Pointer objects

2010-10-23 Thread Mark Rada
Hi, I've been trying to play with using the Accessibility API to do some automated testing. >From what I have researched, I have to use some C functions that often need a >reference passed to the them. I am at a loss when trying to deal with Pointer objects. I've tried playing with them and

Re: [MacRuby-devel] URI and NSURL compatibility

2010-10-07 Thread Mark Rada
.parse uri end end def method_missing(method, *args) @url.send(method, *args) end end On 2010-10-07, at 11:11 PM, Mark Rada wrote: > Hi devs, > > I am trying to write a gem so that it will run on MRI and MacRuby, but still > be

[MacRuby-devel] URI and NSURL compatibility

2010-10-07 Thread Mark Rada
hod_missing(method, *args) @url.send(method, *args) end end -- Mark Rada ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Troubles getting some things to work

2010-09-28 Thread Mark Rada
On 2010-09-28, at 1:22 AM, Laurent Sansonetti wrote: > Hi Mark, > > On Sep 25, 2010, at 4:36 PM, Mark Rada wrote: > >> Hi, >> >> I've been working on a Ruby gem that I would eventually like to run on >> MacRuby, but I seem to have run into a couple of

[MacRuby-devel] Troubles getting some things to work

2010-09-25 Thread Mark Rada
Hi, I've been working on a Ruby gem that I would eventually like to run on MacRuby, but I seem to have run into a couple of issues and have no idea what is going on. I would appreciate it if someone could take a look and see if I am not understanding something obvious. The gem is a SOAP client

  1   2   >