Re: [MacRuby-devel] Fwd: OS X10.9 MacRuby's future...

2013-05-17 Thread Matt Aimonetti
Is require supported in RubyMotion for OS X? What about Ruby gems?
Can one just compile his/her own MacRuby project using RubyMotion without
making any (major) changes?

- Matt


On Fri, May 17, 2013 at 2:26 PM, stephen horne fat...@gmail.com wrote:

 From what I understand, the only thing missing in Rubymotion is eval()

 There's an article by Clay Allsop about meta-programming in Rubymotion at
 http://clayallsopp.com/posts/rubymotion-metaprogramming/

 I tested to see if eval() works in desktop Rubymotion apps (I read
 somewhere that the reason it's not included is due to Apple restrictions on
 run-time code evaluation in iOS, rather than a limit of Rubymotion), but it
 doesn't.

 fb

   david kramf dakr@gmail.com
  17/05/2013 13:19

 Is RubyMotion  a full Ruby. Does it support reflection and metaprograming?
 Thanks, David Kramf



 ___
 MacRuby-devel mailing list
 MacRuby-devel@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macruby-devel
   Francis Chong fran...@ignition.hk
  17/05/2013 12:15
 While I'm really happy about OS X support on RubyMotion, it is not a
 replacement for MacRuby.

 IMHO MacRuby is far superior:

 It offer JIT compiler, you develop orders of magnitude faster as you dont
 need clean and rebuild every time.

 You have full ruby compatibility, load standard library as you wish.

 It loads gems and framework dynamically like what you would expected from
 regular ruby.

 You don't have to write new gems, or rewrite them. Many gems just work,
 even native ones could work.

 You can use regular technique for meta programming, and generally you
 don't enter a uncanny valley between dynamic language and static build
 system.

 Some of these limitations are inherited from RubyMotion due to iOS
 restriction, I don't see them going away anytime soon.

 That said, RubyMotion team is the ones who know most of MacRuby, and
  their direction is not like MacRuby in past. If you are going to develop
 Mac app, your best choice is probably go RubyMotion, or just use
 Objective-C.
 —
 Sent from Mailbox https://bit.ly/SZvoJe for iPhone



 ___
 MacRuby-devel mailing list
 MacRuby-devel@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macruby-devel


 ___
 MacRuby-devel mailing list
 MacRuby-devel@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macruby-devel


attachment: compose-unknown-contact.jpgattachment: postbox-contact.jpg___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macruby-devel


Re: [MacRuby-devel] Compile command line app

2012-05-29 Thread Matt Aimonetti
from the man file:

   When building an executable, the very first file passed to macrubyc will
be considered as the main file. Its machine code will be run once the
executable starts. Other
 machine code files will be linked into the executable, but only run
upon calls to the require method.

   $ echo def t1; 21; end  t1.rb
   $ echo def t2; 21; end  t2.rb
   $ echo require 't1'; require 't2'; p t1+t2  test.rb
   $ macrubyc test.rb t1.rb t2.rb -o test
   $ ./test


- Matt

On Tue, May 29, 2012 at 5:45 PM, Enrico Pilotto enr...@megiston.it wrote:

 Oh good!
 But now i've another problem:
 if I have only one file all work (macrubyc myfile.rb)
 but if I have 2 files where 1 file require the other, I dont know how to
 compile the 2 files...
 Ive try

 macrubyc -c file1.rb -o file1.o
 macrubyc -c file2.rb -o file2.o
 macrubyc file1.o file2.o -o exec

 Now when I run the ./exec i have the error: no such file to load --
 (LoadError)

 There is a way?

 Il 29/05/12 14:14, Francis Chong ha scritto:
  You can compile any ruby file with macrubyc. For anything more complex
  you probably want to check macruby_deploy.
 
  There is an old post at:
  http://macruby.macosforge.org/blog/2009/11/17/macruby05b2.html which
  should still valid.
 
 
 
  --
  Francis Chong
  Ignition Soft
 
  On 2012年5月29日Tuesday at 下午7:36, Enrico Pilotto wrote:
 
  Hi, there is a way to create a command line tool with XCode using
 macruby?
 
  I've a little program that run with 'macruby main.rb', but now i want
  create an executable file... There is a way to compile the macruby
 source?
 
  Thanks, Enrico.


 ___
 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


Re: [MacRuby-devel] RubyMotion: Ruby for iOS

2012-05-03 Thread Matt Aimonetti
I agree with most of you, I think that Laurent deserves the financial
backing for his work but I also have to admit that I'm worried about the
future of MacRuby and what would happen to my RubyMotion projects if
Laurent decides to move on.

I don't have an issue with the commercial aspect of RubyMotion, I think
that's fair and will ensure support, continuous development and proper
attention.
However the proprietary aspect of RubyMotion is a bit more problematic for
someone who strongly believes in open source. That said, none of the other
alternatives are currently open source either. (I guess MobiRuby will be
the first)

Currently RubyMotion is a great solution to hack/prototype small apps for
iOS but I'll seat back and see what the community does with it and where
Laurent will take the project.
If RubyMotion's source code was open, I would certainly be less worried but
I also understand Laurent's reasons.
I'm looking forward to seeing the upcoming UI libraries and the first
cocos2d based game written in RubyMotion and all the nice UI libraries to
avoid writing all the Cocoa cruft.  As a matter of fact, I believe that
RubyMotion will open the door for creative people to come up with something
equivalent of http://processing.org/ on iOS.

That said, I'm looking forward to seeing Laurent contribute his new memory
management system back to MacRuby and finally make it GC free since he
proved it's totally doable!

My 2 cents worth

- Matt


On Thu, May 3, 2012 at 10:49 PM, Ian Ragsdale macr...@ianragsdale.comwrote:

 Personally I'm happy to pay for it, and in fact already have.  I'd just
 like to see some of these improvements make their way back to the open
 source community, and be reassured that if HipByte for some reason doesn't
 work out, any projects I have built in MacRuby are supported going forward.

 - Ian

 On May 3, 2012, at 2:12 PM, Jeremy McAnally wrote:

 The catch in situations like this is that it may have never been written
 in the first place if Laurent wasn't able to take the time and dedicate the
 energy full time to build it.  Personally, I'd rather fund continued
 development of it with a license than never to have had it in the first
 place.

 --Jeremy

 On Thu, May 3, 2012 at 3:04 PM, Perry E. Metzger pe...@piermont.comwrote:

 On Thu, 03 May 2012 13:15:52 -0500 Ian Ragsdale
 macr...@ianragsdale.com wrote:
  That said, I'm wondering if/when any of this will become open
  source?  It's been a long time since I trusted proprietary code
  more than open source stuff.  Open source projects can aways be
  forked or maintained by someone else, but if a proprietary company
  drops support for whatever reason, your codebase depending on them
  is in trouble.
 
  I'm not trying to suggest in any way that you guys would do that,
  but it does make me a little nervous suggesting using this to any
  of my clients.

 I have to agree. I have no fundamental problem with paying for stuff,
 but I do have trouble with a code base that can't later be picked up
 and actively developed by someone else if the initial developers
 vanish. Apologies for injecting any negativity here.

 Perry
 --
 Perry E. Metzgerpe...@piermont.com
 ___
 MacRuby-devel mailing list
 MacRuby-devel@lists.macosforge.org
 http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel




 --
 http://jeremymcanally.com/

 Positivity every morning: http://goodmorninginterwebs.com
 Bowties, ties, and more: http://wickhamhousebrand.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


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] migrating tickets to GitHub

2012-04-27 Thread Matt Aimonetti
Awesome, thanks for the update!

- Matt

On Fri, Apr 27, 2012 at 7:46 PM, Jake Smith j...@theviolentbear.com wrote:

 Matt,

 I took responsibility for that project, but unfortunately was out of the
 country for a week and this past week have been swamped. So, I scheduled
 the migration as a client job with a deadline of Friday the 4th, so it will
 be done by then at the absolute latest. As far as status, it's about 30% as
 I switched from using the CSV report to the SQL database and had to start
 over, but will hopefully have the project completed Tuesday.

 --
 Jake Smith
 pace e bene

 On Friday, April 27, 2012 at 4:58 AM, Matt Aimonetti wrote:

 So it looks like we are waiting for the tracker tickets to be migrated
 from MacOS Forge to GitHub to also do the website update and the release.
 Who's working on that, what's the status of the migration?

 Thanks,

 - 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


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] The future of MacRuby

2012-04-08 Thread Matt Aimonetti
It looks really promising, is there a way to keep the original reporter or do 
Github tickets have to be attached at an actual user. If that's the case, is 
there a way to find users based on a given email address?

-m
Sent from my iPhone

On Apr 8, 2012, at 18:00, Jake Smith j...@theviolentbear.com wrote:

 I have already tried importing the tickets to GitHub at 
 http://github.com/theviolentbear/macruby-issues 
 usinghttps://github.com/adamcik/github-trac-ticket-import. I was doing it so 
 I could have offline access to tickets, but someone let me know that it was 
 being discussed on the mailing list. It didn't properly escape code blocks 
 nor did it import most of the metadata or respect the GitHub API limits, but 
 it kind of worked as you can see.
 
 -- 
 Jake Smith
 pace e bene
 
 On Sunday, April 8, 2012 at 10:00 AM, 
 macruby-devel-requ...@lists.macosforge.org wrote:
 
 Send MacRuby-devel mailing list submissions to
 macruby-devel@lists.macosforge.org
 
 To subscribe or unsubscribe via the World Wide Web, visit
 http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
 or, via email, send a message with subject or body 'help' to
 macruby-devel-requ...@lists.macosforge.org
 
 You can reach the person managing the list at
 macruby-devel-ow...@lists.macosforge.org
 
 When replying, please edit your Subject line so it is more specific
 than Re: Contents of MacRuby-devel digest...
 
 
 Today's Topics:
 
 1. Re: The future of MacRuby (Eloy Duran)
 2. Re: The future of MacRuby (dan sinclair)
 3. Re: The future of MacRuby (Eloy Duran)
 
 
 --
 
 Message: 1
 Date: Sat, 7 Apr 2012 23:40:39 +0200
 From: Eloy Duran eloy.de.en...@gmail.com
 To: MacRuby development discussions.
 macruby-devel@lists.macosforge.org
 Subject: Re: [MacRuby-devel] The future of MacRuby
 Message-ID: d23125eb-0b40-4f7b-bb6c-6d739ed4d...@gmail.com
 Content-Type: text/plain; charset=windows-1252
 
 Can we get the issues section enabled on github and move off of Trac? (Not 
 sure how hard it would be to import all of the old trac stuff to Github).
 
 Would be nice to consolidate everything in one place.
 
 I think that?s an excellent idea. However, it?s probably better to first 
 import tickets from Trac before we open it up for new tickets, because that 
 won't leave any risk for damaging any tickets opened before the old tickets 
 are imported and also avoids people spending time on duplicate tickets.
 
 Are you interested in investigating this?
 
 --
 
 Message: 2
 Date: Sat, 7 Apr 2012 14:53:19 -0700
 From: dan sinclair d...@everburning.com
 To: MacRuby development discussions.
 macruby-devel@lists.macosforge.org
 Subject: Re: [MacRuby-devel] The future of MacRuby
 Message-ID:
 CAB0vK_JU6iF5z1pv38z1izsJeE+qHn=pb9k2zpuucts3n-g...@mail.gmail.com
 Content-Type: text/plain; charset=windows-1252
 
 Can you import before it's open? I just assumed it wasn't accessible at all
 until enable? It looks like forgeplucker (http://home.gna.org/forgeplucker/)
 has support to pull tickets out of trac and dump to JSON. Should be pretty
 easy to go from JSON to GitHub API I'd expect.
 
 I can take a look and see what's involved.
 
 dan
 
 
 
 
 On Sat, Apr 7, 2012 at 2:40 PM, Eloy Duran eloy.de.en...@gmail.com wrote:
 
 Can we get the issues section enabled on github and move off of Trac?
 (Not sure how hard it would be to import all of the old trac stuff to
 Github).
 
 Would be nice to consolidate everything in one place.
 
 I think that?s an excellent idea. However, it?s probably better to first
 import tickets from Trac before we open it up for new tickets, because that
 won't leave any risk for damaging any tickets opened before the old tickets
 are imported and also avoids people spending time on duplicate tickets.
 
 Are you interested in investigating this?
 ___
 MacRuby-devel mailing list
 MacRuby-devel@lists.macosforge.org
 http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://lists.macosforge.org/pipermail/macruby-devel/attachments/20120407/5b4ccf1d/attachment-0001.html
 
 --
 
 Message: 3
 Date: Sun, 8 Apr 2012 00:01:36 +0200
 From: Eloy Duran eloy.de.en...@gmail.com
 To: MacRuby development discussions.
 macruby-devel@lists.macosforge.org
 Subject: Re: [MacRuby-devel] The future of MacRuby
 Message-ID: d10916e5-8078-4c70-87df-9b05e593f...@gmail.com
 Content-Type: text/plain; charset=windows-1252
 
 Can you import before it's open? I just assumed it wasn't accessible at all 
 until enable? It looks like forgeplucker 
 (http://home.gna.org/forgeplucker/) has support to pull tickets out of trac 
 and dump to JSON. Should be pretty easy to go from JSON to GitHub API I'd 
 expect.
 
 Well, we?d open it once the import is ready to be performed. Until then it 
 can be 

Re: [MacRuby-devel] The Future of MacRuby

2012-04-06 Thread Matt Aimonetti
Thanks a lot Andrew for the feedback. I think you have some really great
points in there.
I'm letting others weigh-in to gage the interest and then we can start
getting organized.

- Matt

On Fri, Apr 6, 2012 at 9:49 AM, Andrew Havens andrew.hav...@evanta.comwrote:

  I've been a lurker in this mailing list for a while now. Sad to hear
 we've lost a project lead but glad to hear Matt has identified many of the
 issues I've been feeling myself.

  I'm a self-taught web developer. I never had any interest in learning
 native app development until I heard about MacRuby. Now I've written a few
 sample apps and one production app. I think MacRuby is a great resource
 to the Ruby community and I think web developers are MacRuby's target
 audience. All of my MacRuby apps are GUIs for other Ruby libraries or gems.

  The biggest thing that I feel is lacking at this point (which Matt
 mentioned) are adequate getting started and reference guides. I had a
 heck of a time trying to create my first app. I had to scrounge together
 blog posts, StackOverflow questions, and Objective-C docs. I think some
 good guides (like Rails guides) would go a long way towards increasing
 adoption. Also moving this mailing list to Google Groups and splitting it
 into MacRuby-core and MacRuby-help would provide a place for newbies to get
 help. In fact I started a Google group for just that purpose since I was
 frustrated that there was no mailing list for people starting out (but
 never told anyone so I'm the only one who ever used it). But I would love
 to see an official one. All the open source projects I know of have a
 Google group since they are easy to use and subscribe to.

  I also feel like XCode is a major hurdle. If you're already familiar
 with XCode, that's great, but as a web developer, I spend most of my day in
 TextMate (or command line). I would love to see some code samples of a REAL
 app created from scratch (not using XCode, multiple files/object oriented)
 because that's how I would like to work with MacRuby (from the text editor
 of my choice, rather than be forced into using Apple's IDE, regardless of
 whether or not it's better). I installed MacRuby from the command line via
 RVM so I want to generate a .app from the command line too.

  I think Ruby on Rails is seen as a productive programming environment. I
 think a big part of that is due to its many command line generators. A lot
 of people learned how to use Rails by looking at the code generated by the
 scaffolding created. If there was more emphasis towards using MacRuby from
 the command line, I could see more people writing MacRuby app scaffolding
 generators.

  I also think that there's a big movement towards writing native apps
 using web technologies (write once, run everywhere mobile apps using
 JavaScript, i.e. Titanium Mobile, PhoneGap). I think this is huge since
 nobody wants to learn a language that's proprietary to a single
 device/company. However, I don't want to write JavaScript unless it looks
 more like Ruby (thanks CoffeeScript). If I could write an iOS app in
 MacRuby I would. I'm not sure how this would work though. I included
 MacRuby in my Snow Leopard app and it increased the app file size
 tremendously. File size is important when it comes to mobile.

  Those are my thoughts. Again, I think MacRuby is great and mostly
 complete. More code samples and documentation are a high priority at this
 point in my opinion.

  --Andrew Havens

  P.S. If you're interested, I'm working on an open source version of
 HipChat that I call Mad Chatter. I used MacRuby to create the native Mac
 client. https://github.com/andrewhavens/mad_chatter
 Contributors more than welcome!

 ___
 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


Re: [MacRuby-devel] Future of MacRuby

2012-04-06 Thread Matt Aimonetti
You can also use git log or GitHub:
https://github.com/MacRuby/MacRuby/compare/0.10...0.11

- Matt


On Fri, Apr 6, 2012 at 7:01 PM, Eloy Duran eloy.de.en...@gmail.com wrote:

  Yes, I'm still alive :) As you may have noticed, I have been absent
  here for a few months. Last year we got a baby, then we moved back to
  Europe. I decided to leave Apple a few months ago to achieve one of my
  dreams: work on a startup, in part so that I would be flexible in my
  time and be able to keep hacking on MacRuby.

 3

  BTW, the 0.11 release actually does exist, you can find it on the
  GitHub page. The release notes are still missing, but I will take care
  of this (we need to automate the whole process).

 I’m pretty sure Git can give you a nice log. I forgot the command, though…
 Anyone else?

 Eloy
 ___
 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


[MacRuby-devel] The future of MacRuby

2012-04-05 Thread Matt Aimonetti
*Many of you have been wondering what is going on with the MacRuby project
given the lack of up-to-date releases and overall communication.
I feel we owe you some explanation.

As a lot of you have noticed, our de-facto project leader Laurent
Sansonetti has been M.I.A since October 2011, his last post to this mailing
list being
http://lists.macosforge.org/pipermail/macruby-devel/2011-October/008168.htmlannouncing
MacRuby 0.11 really soon.
His last commit was a change of license back in October:
https://github.com/MacRuby/MacRuby/commit/ac2a7a8e678d19e44d3c64a9508a8370d082dca2
https://github.com/MacRuby/MacRuby/commit/ac2a7a8e678d19e44d3c64a9508a8370d082dca2
Laurent is fine. As described on his twitter http://twitter.com/lrz and
LinkedIn http://www.linkedin.com/in/sansonetti accounts, Laurent is no
longer with Apple and is clearly also no longer directly involved with the
MacRuby project on a day-to-day basis.
Laurent is currently busy with another project and and hopes to someday be
able to contribute to the MacRuby project again.

While no one on this list can speak for Apple, and Apple as a company does
not tend to comment on its future plans or intentions, I think it's
reasonable to imagine that Apple would be more than happy to have the
MacRuby project decide for itself what its destiny is and how to achieve
it.  If they did not want the community to be involved or drive such a
process, they would not have released MacRuby as open source or created the
project infrastructure to facilitate it.   It is time for us to stop
looking to Apple to provide guidance, leadership and coding for the
project, in other words, and take on those challenges for ourselves!
  MacRuby is already very powerful and comparatively stable as a
development platform, now it's time for us to take things to the next level.

I personally think it will finally allow us to communicate and collaborate
on the actual process of development as it occurs, rather than the previous
practice of simply seeing code appear from some hidden, internal branch
which was driven almost exclusively by a single person

Doing all of this in the open should lead to far more people being
interested in the project, not just as users but as developers and leaders.
 No one rushes to fill a position that is occupied by someone else, but now
we have a vacuum to fill, and that can be a good thing in terms of
encouraging more people to step forward.

Here is how I see things and I would love to hear more about what you guys
think.
MacRuby is a great project, but:

   - the target audience  projects aren't clear
   - the target platform (OS X) isn't the one we all really want to target
   (iOS)
   - Cocoa's API is awesome but not user friendly/easy to grasp


What I'd like to suggest is the following:

1. Define clear goals for MacRuby that we can easily evaluate:

   - Focus primarily on making MacRuby the tool to use for quickly
   prototyping OS X and iOS applications.
   - Remove dependency on libauto so MacRuby can run post Mountain Lion and
   on iOS.

2. Increase the number of contributors:

   - Define areas of contribution:
  - implementation itself (mainly requires C, C++ knowledge)
  - prototyping focus (templates, wrapper APIs, modules, tools: a full
  ecosystem aimed at being more productive)
  - documentation (getting started, guides, FAQs, wiki, demos, hacker
  guides)
  - support


   - empower contributors:
  - move the website to github for easier contribution
  - better release process and roadmap
  - better process to review pull requests  give commit rights

3. Improve communication:

   - start an active and official chat room (IRC, campfire like or
   something else)
   - open discussions about plans for the project and progress made
   - better collaboration with other Ruby implementation teams (Rubinius,
   JRuby, MagLev and of course Matz/C Ruby)


Let's not forget that MacRuby is and will remain a free Open Source project
and that means we need your help and support.
Without you, this project doesn't mean much so please voice your opinion
and if you decide to do so, become an active participant to MacRuby's
success.

I would like to thank Apple for their historical support and Laurent for
starting this project and all his work so far. Without those contributions,
MacRuby would never have existed and the project will more than welcome any
future participation by either Apple or Laurent.
At the same time, I don't think the future of this project can or should
rest on the shoulders of a single corporate entity, or that of a single
individual.  That does not encourage the kind of broad participation, or
the kind of overall longevity (in the form of future generations of
contributors) that Open Source projects really need to survive over the
long term.
Finally, I'd like to make clear that I see myself more in a role of a
facilitator than a technical leader on the order of what Laurent was. This
role has 

Re: [MacRuby-devel] The future of MacRuby

2012-04-05 Thread Matt Aimonetti
Absolutely, thanks for clarifying my poorly worded statement.

- Matt

On Fri, Apr 6, 2012 at 12:12 AM, Scott Ribe scott_r...@killerbytes.comwrote:

 On Apr 5, 2012, at 4:06 PM, Matt Aimonetti wrote:

• the target platform (OS X) isn't the one we all really want to
 target (iOS)

 The target platform is only 1 of 2 that many of us really want to target?

 --
 Scott Ribe
 scott_r...@elevated-dev.com
 http://www.elevated-dev.com/
 (303) 722-0567 voice




 ___
 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


Re: [MacRuby-devel] Rails.app done by the MacRuby community

2012-03-29 Thread Matt Aimonetti

 What is the next step once we gather a reasonable number of people
 interested in this thread?


Start coding :) We certainly need some guidelines and agreed objectives but
code speaks louder than words.
My suggestion would be to start with something like Couchdbx:
https://github.com/mattetti/couchdbx-app/tree/master/macruby_version/CouchDBX
which allows you to start a process/task in the background and shows
you
the logs and offer a webkit view with the running site.
We'll probably need some options to pick what project to run, what version
of Ruby to use and maybe what DB?
Once everything is working fine, we can tackle the scripts to make sure the
dependencies are available and install what's missing.

- Matt


On Thu, Mar 29, 2012 at 12:42 AM, Mark Villacampa markv...@gmail.comwrote:

 Oh nice, I'll check it later. But no problem, Ive got tons of ideas for
 MacRuby apps :)

 What is the next step once we gather a reasonable number of people
 interested in this thread?

 Enviado desde mi iPhone

 El 29/03/2012, a las 07:42, Matt Aimonetti mattaimone...@gmail.com
 escribió:

  Someone already did a RVM GUI in MacRuby, check it out:
 http://jewelrybox.unfiniti.com/
 
  Unfortunately, I don't think the source code is available :(
 
  -m
  Sent from my iPhone
 
  On Mar 29, 2012, at 7:22, Mark Villacampa markv...@gmail.com wrote:
 
  Hi,
 
  I just started learning MacRuby and I saw te kickstarter project
 yesterday.
 
  A GUI for rvm was already going to be one of the first apps I'd do with
 MacRuby, so I would love to contribute to this project.
 
  Mark Villacampa
  @MarkVillacampa
 
  Enviado desde mi iPhone
 
  El 29/03/2012, a las 06:44, Matt Aimonetti mattaimone...@gmail.com
 escribió:
 
  Today a mini drama was started after Yehuda Katz announced his
 kickstarter project to build a .app for Rails. He's trying to raise $25k
 to work on the project, see more there:
  http://news.ycombinator.com/item?id=3768339
 
  Putting the money raising question aside, I think this is a good
 project but I think that as a community we can do it together, learn a lot
 in the process and create an awesome product helping the community.
 
  My suggestion is that people interested get together and hack together
 in an open and public way. Yehuda might get funded and decide to contribute
 or do his own thing in JS, that's totally besides the point since our
 motivations  would be different so we shouldn't worry about that.
 
  So, what do you say?
 
  - Matt
 
  P.S: Two years ago, I ported couchdbx to MacRuby and extracted some
 code you can see here: https://github.com/mattetti/mrstuff
  The couchdbx app is also available in my github repo.
 
 
  -m
  Sent from my iPhone
  ___
  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
  ___
  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

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] App Store

2012-03-29 Thread Matt Aimonetti
Awesome, thanks a lot.

- Matt

On Thu, Mar 29, 2012 at 11:50 AM, Daniel Westendorf
dan...@prowestech.comwrote:

 Finally found the time to do a quick and dirty write up on the process. It
 should at least be a good overview and starting point.
 https://github.com/MacRuby/MacRuby/wiki/Mac-App-Store-Submission

 dw


 On Fri, Mar 16, 2012 at 7:40 PM, Matt Aimonetti 
 mattaimone...@gmail.comwrote:

 Thanks Again Daniel, very much appreciated.

 - Matt


 On Fri, Mar 16, 2012 at 11:18 AM, Daniel Westendorf 
 dan...@prowestech.com wrote:

 Okay, that sounds like a good move going forward. I'll see if I can't
 get that added.

 Daniel


 On Thu, Mar 15, 2012 at 9:24 PM, Matt Aimonetti mattaimone...@gmail.com
  wrote:

 I think you should add it now and just mention that it's for
 0.11/nightly build. We are waiting for Laurent to release 0.11 and I
 honestly don't know when he will be able to push the release :(

 I think it's going to be useful to a lot of people and we can just
 update the entry when 0.11 is released.
 Thank you very much for offering to write the page.

 - Matt


 On Thu, Mar 15, 2012 at 8:05 PM, Daniel Westendorf 
 dan...@prowestech.com wrote:

 Matt,

 I'll add a topic to the wiki as soon as 0.11 hits. Do we know when
 that might be?

 dw


 On Thu, Mar 15, 2012 at 8:53 PM, Matt Aimonetti 
 mattaimone...@gmail.com wrote:

 It would be great if is someone could contribute on the topic in the
 wiki and add a recipe there:
 https://github.com/MacRuby/MacRuby/wiki/_pages

 It might be a good place to save a lot of small things that we
 discover as we go through the projects and which might not need to be on
 the main site (it's also easier to contribute/maintain).

 Thanks,

 - Matt


 On Thu, Mar 15, 2012 at 7:30 PM, Ron Green rgree...@gmail.comwrote:

 Daniel,

 Would you mind elaborating on your process a little? I'm having
 problems submitting my MacRuby app to the Mac App Store. I'm using 
 MacRuby
 0.10 and Xcode 4.2.1 and have no external gem dependancies. The app is
 being rejected because of Invalid Signature errors. I've tried running
 codesign manually but still get rejected. Any pointers would be
 appreciated.

 Thanks,
 Ron

 On Mar 14, 2012, at 4:54 PM, Daniel Westendorf wrote:

 Once you figure out the process, it is just as smooth as submitting
 an Obj-C app. It has been polished up to just a matter of including the
 correct macruby_deploy params in the Deployment build.

 dw

 On Wed, Mar 14, 2012 at 9:56 AM, Erik Lundqvist 
 willcodejavaforf...@gmail.com wrote:

 Thanks Daniel

 And it all went smoothly? :)


 On 14 March 2012 15:44, Daniel Westendorf dan...@prowestech.comwrote:

 Hi Erik,

 I have a few MR apps in the MAS.

 http://itunes.apple.com/us/app/thumper/id436422990?mt=12ls=1#

 http://itunes.apple.com/us/app/html-slide-presenter/id456995240?mt=12(
 https://github.com/danielwestendorf/HTML-Slide-Presenter)
 http://itunes.apple.com/us/app/karmahore/id486966617?mt=12

 dw

 On Wed, Mar 14, 2012 at 9:29 AM, Erik Lundqvist 
 willcodejavaforf...@gmail.com wrote:

 Hi everyone,

 I'm Erik, a Swede who got lost in London and never looked back.
 I'm a Java developer who cheats a little bit with iOS, and last year 
 around
 this time I bought the MacRuby in Action and tried a bit of MacRuby.

 Introduction over.

 So, I'm curious. Has anyone actually successfully created a
 MacRuby app and sold it on the Mac App Store?

 //Erik

 ___
 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



 ___
 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



 ___
 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



 ___
 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



 ___
 MacRuby-devel mailing list
 MacRuby-devel@lists.macosforge.org
 http

[MacRuby-devel] Rails.app done by the MacRuby community

2012-03-28 Thread Matt Aimonetti
Today a mini drama was started after Yehuda Katz announced his kickstarter 
project to build a .app for Rails. He's trying to raise $25k to work on the 
project, see more there:
http://news.ycombinator.com/item?id=3768339

Putting the money raising question aside, I think this is a good project but I 
think that as a community we can do it together, learn a lot in the process and 
create an awesome product helping the community.

My suggestion is that people interested get together and hack together in an 
open and public way. Yehuda might get funded and decide to contribute or do his 
own thing in JS, that's totally besides the point since our motivations  would 
be different so we shouldn't worry about that.

So, what do you say?

- Matt

P.S: Two years ago, I ported couchdbx to MacRuby and extracted some code you 
can see here: https://github.com/mattetti/mrstuff
The couchdbx app is also available in my github repo.


-m
Sent from my iPhone
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] App Store

2012-03-16 Thread Matt Aimonetti
Thanks Again Daniel, very much appreciated.

- Matt

On Fri, Mar 16, 2012 at 11:18 AM, Daniel Westendorf
dan...@prowestech.comwrote:

 Okay, that sounds like a good move going forward. I'll see if I can't get
 that added.

 Daniel


 On Thu, Mar 15, 2012 at 9:24 PM, Matt Aimonetti 
 mattaimone...@gmail.comwrote:

 I think you should add it now and just mention that it's for 0.11/nightly
 build. We are waiting for Laurent to release 0.11 and I honestly don't know
 when he will be able to push the release :(

 I think it's going to be useful to a lot of people and we can just update
 the entry when 0.11 is released.
 Thank you very much for offering to write the page.

 - Matt


 On Thu, Mar 15, 2012 at 8:05 PM, Daniel Westendorf dan...@prowestech.com
  wrote:

 Matt,

 I'll add a topic to the wiki as soon as 0.11 hits. Do we know when that
 might be?

 dw


 On Thu, Mar 15, 2012 at 8:53 PM, Matt Aimonetti mattaimone...@gmail.com
  wrote:

 It would be great if is someone could contribute on the topic in the
 wiki and add a recipe there:
 https://github.com/MacRuby/MacRuby/wiki/_pages

 It might be a good place to save a lot of small things that we discover
 as we go through the projects and which might not need to be on the main
 site (it's also easier to contribute/maintain).

 Thanks,

 - Matt


 On Thu, Mar 15, 2012 at 7:30 PM, Ron Green rgree...@gmail.com wrote:

 Daniel,

 Would you mind elaborating on your process a little? I'm having
 problems submitting my MacRuby app to the Mac App Store. I'm using MacRuby
 0.10 and Xcode 4.2.1 and have no external gem dependancies. The app is
 being rejected because of Invalid Signature errors. I've tried running
 codesign manually but still get rejected. Any pointers would be
 appreciated.

 Thanks,
 Ron

 On Mar 14, 2012, at 4:54 PM, Daniel Westendorf wrote:

 Once you figure out the process, it is just as smooth as submitting an
 Obj-C app. It has been polished up to just a matter of including the
 correct macruby_deploy params in the Deployment build.

 dw

 On Wed, Mar 14, 2012 at 9:56 AM, Erik Lundqvist 
 willcodejavaforf...@gmail.com wrote:

 Thanks Daniel

 And it all went smoothly? :)


 On 14 March 2012 15:44, Daniel Westendorf dan...@prowestech.comwrote:

 Hi Erik,

 I have a few MR apps in the MAS.

 http://itunes.apple.com/us/app/thumper/id436422990?mt=12ls=1#
 http://itunes.apple.com/us/app/html-slide-presenter/id456995240?mt=12(
 https://github.com/danielwestendorf/HTML-Slide-Presenter)
 http://itunes.apple.com/us/app/karmahore/id486966617?mt=12

 dw

 On Wed, Mar 14, 2012 at 9:29 AM, Erik Lundqvist 
 willcodejavaforf...@gmail.com wrote:

 Hi everyone,

 I'm Erik, a Swede who got lost in London and never looked back. I'm
 a Java developer who cheats a little bit with iOS, and last year around
 this time I bought the MacRuby in Action and tried a bit of MacRuby.

 Introduction over.

 So, I'm curious. Has anyone actually successfully created a MacRuby
 app and sold it on the Mac App Store?

 //Erik

 ___
 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



 ___
 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



 ___
 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



 ___
 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



 ___
 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


Re: [MacRuby-devel] App Store

2012-03-15 Thread Matt Aimonetti
I think you should add it now and just mention that it's for 0.11/nightly
build. We are waiting for Laurent to release 0.11 and I honestly don't know
when he will be able to push the release :(

I think it's going to be useful to a lot of people and we can just update
the entry when 0.11 is released.
Thank you very much for offering to write the page.

- Matt


On Thu, Mar 15, 2012 at 8:05 PM, Daniel Westendorf dan...@prowestech.comwrote:

 Matt,

 I'll add a topic to the wiki as soon as 0.11 hits. Do we know when that
 might be?

 dw


 On Thu, Mar 15, 2012 at 8:53 PM, Matt Aimonetti 
 mattaimone...@gmail.comwrote:

 It would be great if is someone could contribute on the topic in the wiki
 and add a recipe there:
 https://github.com/MacRuby/MacRuby/wiki/_pages

 It might be a good place to save a lot of small things that we discover
 as we go through the projects and which might not need to be on the main
 site (it's also easier to contribute/maintain).

 Thanks,

 - Matt


 On Thu, Mar 15, 2012 at 7:30 PM, Ron Green rgree...@gmail.com wrote:

 Daniel,

 Would you mind elaborating on your process a little? I'm having problems
 submitting my MacRuby app to the Mac App Store. I'm using MacRuby 0.10 and
 Xcode 4.2.1 and have no external gem dependancies. The app is being
 rejected because of Invalid Signature errors. I've tried running codesign
 manually but still get rejected. Any pointers would be appreciated.

 Thanks,
 Ron

 On Mar 14, 2012, at 4:54 PM, Daniel Westendorf wrote:

 Once you figure out the process, it is just as smooth as submitting an
 Obj-C app. It has been polished up to just a matter of including the
 correct macruby_deploy params in the Deployment build.

 dw

 On Wed, Mar 14, 2012 at 9:56 AM, Erik Lundqvist 
 willcodejavaforf...@gmail.com wrote:

 Thanks Daniel

 And it all went smoothly? :)


 On 14 March 2012 15:44, Daniel Westendorf dan...@prowestech.comwrote:

 Hi Erik,

 I have a few MR apps in the MAS.

 http://itunes.apple.com/us/app/thumper/id436422990?mt=12ls=1#
 http://itunes.apple.com/us/app/html-slide-presenter/id456995240?mt=12(
 https://github.com/danielwestendorf/HTML-Slide-Presenter)
 http://itunes.apple.com/us/app/karmahore/id486966617?mt=12

 dw

 On Wed, Mar 14, 2012 at 9:29 AM, Erik Lundqvist 
 willcodejavaforf...@gmail.com wrote:

 Hi everyone,

 I'm Erik, a Swede who got lost in London and never looked back. I'm a
 Java developer who cheats a little bit with iOS, and last year around 
 this
 time I bought the MacRuby in Action and tried a bit of MacRuby.

 Introduction over.

 So, I'm curious. Has anyone actually successfully created a MacRuby
 app and sold it on the Mac App Store?

 //Erik

 ___
 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



 ___
 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



 ___
 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



 ___
 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


Re: [MacRuby-devel] Introduction

2012-03-05 Thread Matt Aimonetti
Hey Matthew,

Thanks for sharing your interest to contribute. All contributors are
welcome, the process is quite simple, you fork the official repo:
https://github.com/macruby/macruby
Make your changes in your local branch and send a pull request to get your
commit merged into the main repo.

We have a list of open tickets in our tracker if you want to get started by
fixing simple bugs to get familiar with the code base:
https://www.macruby.org/trac/report/1

Let us know if you have any questions.
Thanks in advance for your help,

- Matt

On Sun, Mar 4, 2012 at 1:41 PM, Matthew Carroll
mjacksoncarr...@gmail.comwrote:

 Hello,

 I am interested in contributing to the MacRuby project. Please pardon the
 unsolicited introduction. The contact page suggests introducing oneself.
 Here is a summary of my programming background:

 I graduated from Georgia Tech with a degree in CS in 2002. I worked at a
 startup in the early 2000’s developing Java web apps for government
 agencies. Next, I worked at Scientific-Atlanta developing device drivers in
 C for cable headend operators to manage third-party signal processing
 devices from a management console. Then I worked for a company developing
 medical transcription software in EJB 3.

 Now I am an independent iOS developer, developing iOS apps for the apparel
 retail industry. WineMemories, an iPhone app I designed and developed
 independently, is available in the app store:
 http://itunes.apple.com/us/app/wine-memories/id454790043?mt=8

 I’d be happy to send you my résumé or talk with if you are interested.

 Thanks,
 Matthew


 ___
 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


Re: [MacRuby-devel] Xcode: rb_nibtool no longer picking up actions

2012-02-24 Thread Matt Aimonetti
Can you show your code, was it working in 4.2?

- Matt

On Fri, Feb 24, 2012 at 10:57 AM, Steve Clarke st...@sclarkes.me.uk wrote:

 No,  I'd already read earlier comments about the block syntax.  I can't
 get actions recognised at all, even in the most trivial cases.  If everyone
 else is OK I might just be doing something stupid.

 Steve

 On 24 Feb 2012, at 18:43, Kevin Poorman wrote:

  There is a known problem, (at least It's known to me...) with rb_nibtool
 and certain forms of ruby block syntax.
 
  Specifically, multi-line {} syntax causes it to fail. I've run into this
 with the dispatch gem doing things like
 
  Dispatch::Job.new {
#some expensive op
  }
 
  that code, while ruby 1.9.2/3 kosher, causes the nibtool to bomb.
  However,
 
  Dispatch::Job.new do
#some expensive op
  end
 
  works just fine. Does your code use {'s or begin/end ?
 
  -Pkj
 
 
  On Feb 24, 2012, at 1:36 PM, Steve Clarke wrote:
 
  I've been following the discussions about getting Xcode 4.3 to find
 rb_nibtool.  The symlink works for me.  However it seems to deal OK with
 outlets but is not working at all for received actions - even in the
 simplest cases.
 
  What may be interesting is that even before I installed 4.3 it stopped
 recognising actions in 4.2.  As far as I'm aware I changed nothing in my
 setup at this time, so I wonder if it's an Apple Software update that has
 caused the problem?
 
  At present I'm stuck and can't get actions to work in 4.2 or 4.3 even
 though rb_nibtool is being invoked in both cases.  I know because it
 successfully recognises any change to outlets.
 
  I'm using the nightly build from last night (dated 24th Feb).
 
  Steve
  ___
  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

 ___
 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


Re: [MacRuby-devel] Nightly Build Package is not latest.

2012-02-21 Thread Matt Aimonetti
Thanks Bill!

- Matt

On Tue, Feb 21, 2012 at 10:21 AM, William Siegrist wsiegr...@apple.comwrote:

 The nightly builder uses a modified rake task which conflicted with recent
 changes so it stopped updating automatically. I have fixed the conflict and
 the nightly for the 21st should be up to date.

 -Bill

 On Feb 21, 2012, at 6:22 AM, Watson watson1...@gmail.com wrote:

  Hi,
 
  I installed Nightly Build (macruby_nightly-2012-02-21.pkg) from
  http://www.macruby.org/files/nightlies/
  However, It looks like recently commits (since 2012/02/10) is not
 applied.
 
  $ wget
 http://www.macruby.org/files/nightlies/macruby_nightly-2012-02-21.pkg
  $ sudo installer -pkg macruby_nightly-2012-02-21.pkg -target /
  $ macruby -e 'p MACRUBY_REVISION'
  git commit bd22a73b88209c7bc84696b2a93ce61fa95875a9
 
  $ git show bd22a73b88209c7bc84696b2a93ce61fa95875a9
  commit bd22a73b88209c7bc84696b2a93ce61fa95875a9
  Author: Mark Rada mr...@marketcircle.com
  Date:   Fri Feb 10 13:28:35 2012 -0500
 
 Revert Make sure symlinks are installed to the proper prefix
 
 This reverts commit c8a0a139e929e7550226b4763a93a72cdc1a79ab.
 
 That change was not actually needed, something else is going on...
   SNIP 
 
 
  Thanks,
  ___
  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

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] MacRuby MountainLion + what you can do to help the project

2012-02-18 Thread Matt Aimonetti
Hey guys,

A few of you asked me privately and publicly what was going on with MacRuby
releases and what was the plan now that Apple clearly said that ARC is the
future and that the GC will be deprecated in MountainLion.

First off, I want to emphasis that even though ARC is the future for iOS
and OS X, the GC won't go away anytime soon. In other words, MacRuby runs
on MountainLion, so there is no real rush. But we need a plan and that plan
probably means not using the GC anymore :p

Regarding MacRuby's releases, Laurent promised to push 0.11 and well, we
are waiting on him but it should happen any day
nowhttps://twitter.com/lrz/status/170464894154584064;)

Allan Delacruz, a designer friend of the project did a redesign of the site
but we need some help to rebase and polish the content.
Volunteers please stand up, Allan's branch is there:
https://github.com/AllanD/MacRubyWebsite  Maybe someone can find some time
over President's day to give us an updated website? Don't hesitate to email
the mailing list about that.

Xcode 4.3 It was reported that because Xcode is now a normal app, our
templates aren't installed in the right place. We need a few volunteers to
modify/test our installer to support the older and the newer Xcode. Or
maybe we can just agree to only support the latest Xcode version (thoughts?)

Extra ideas for volunteers:

   - Changelog for 0.11 release, let's help Laurent writing the release
   blog post by giving him a summarized changelog
   - Sublime Text 2 http://www.sublimetext.com/ is the new TextMate and I
   quickly looked at it and adding MacRuby support seems really
   straightforward (requires some Python scripting but hey, that's better than
   dealing with AppleScript :p). My challenge to you is to offer a
   MacRuby/Cocoa package.
   - Organize the various samples we have and add them to the website.
   - Update the tutorials (linking to the online version of my book is fine
   but original stuff should be encouraged, especially what I missed in the
   book)
   - Document the MacRuby internals and help new devs contribute feature
   and fix bugs.

Summary: the sky isn't falling, we are all good but we need help and we
need to grow the team of active contributors. Tell us what you are
interested in helping with and let's get organized to push MacRuby to the
next level.

Thanks,

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby MountainLion + what you can do to help the project

2012-02-18 Thread Matt Aimonetti
Thanks James, the templates didn't change in 4.3, but the location where
they live did.
Are you volunteering to update our installer to cover 4.3? ;)

Thanks in advance,

- Matt

On Sat, Feb 18, 2012 at 1:12 AM, James Chen ashc...@gmail.com wrote:

 Matt,

 Great and excited to hear all these!

 Regarding Xcode template support, dropping update  Xcode 4.3 would not be
 a big issue. For 4.2 or lower the current template can be used.

 Can't wait to see 0.11 and other updates!

 Thanks a lot!

 James

 On Sat, Feb 18, 2012 at 5:54 PM, Matt Aimonetti 
 mattaimone...@gmail.comwrote:

 Hey guys,

 A few of you asked me privately and publicly what was going on with
 MacRuby releases and what was the plan now that Apple clearly said that ARC
 is the future and that the GC will be deprecated in MountainLion.

 First off, I want to emphasis that even though ARC is the future for iOS
 and OS X, the GC won't go away anytime soon. In other words, MacRuby runs
 on MountainLion, so there is no real rush. But we need a plan and that plan
 probably means not using the GC anymore :p

 Regarding MacRuby's releases, Laurent promised to push 0.11 and well, we
 are waiting on him but it should happen any day 
 nowhttps://twitter.com/lrz/status/170464894154584064;)

 Allan Delacruz, a designer friend of the project did a redesign of the
 site but we need some help to rebase and polish the content.
 Volunteers please stand up, Allan's branch is there:
 https://github.com/AllanD/MacRubyWebsite  Maybe someone can find some
 time over President's day to give us an updated website? Don't hesitate to
 email the mailing list about that.

 Xcode 4.3 It was reported that because Xcode is now a normal app, our
 templates aren't installed in the right place. We need a few volunteers to
 modify/test our installer to support the older and the newer Xcode. Or
 maybe we can just agree to only support the latest Xcode version (thoughts?)

 Extra ideas for volunteers:

- Changelog for 0.11 release, let's help Laurent writing the release
blog post by giving him a summarized changelog
- Sublime Text 2 http://www.sublimetext.com/ is the new TextMate and
I quickly looked at it and adding MacRuby support seems really
straightforward (requires some Python scripting but hey, that's better 
 than
dealing with AppleScript :p). My challenge to you is to offer a
MacRuby/Cocoa package.
- Organize the various samples we have and add them to the website.
- Update the tutorials (linking to the online version of my book is
fine but original stuff should be encouraged, especially what I missed in
the book)
- Document the MacRuby internals and help new devs contribute feature
and fix bugs.

 Summary: the sky isn't falling, we are all good but we need help and we
 need to grow the team of active contributors. Tell us what you are
 interested in helping with and let's get organized to push MacRuby to the
 next level.

 Thanks,

 - 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


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby MountainLion + what you can do to help the project

2012-02-18 Thread Matt Aimonetti
Salut Geoffrey, you can find the templates and installers in our main github 
repo: https://github.com/MacRuby/MacRuby/tree/master/misc
(installers are in the release folder)

Let's start a new thread and thanks for volunteering to look at that :)

-m
Sent from my iPhone

On Feb 18, 2012, at 1:37, Geoffrey Roguelon geoffrey.rogue...@gmail.com wrote:

 Hi,
 
 Are installer code located in public place (GitHub) ?
 
 Best regards.
 
 -
 Geoffrey Roguelon
 
 Le 18 févr. 2012 à 10:26, Matt Aimonetti a écrit :
 
 Thanks James, the templates didn't change in 4.3, but the location where 
 they live did.
 Are you volunteering to update our installer to cover 4.3? ;)
 
 Thanks in advance,
 
 - Matt
 
 On Sat, Feb 18, 2012 at 1:12 AM, James Chen ashc...@gmail.com wrote:
 Matt,
 
 Great and excited to hear all these!
 
 Regarding Xcode template support, dropping update  Xcode 4.3 would not be a 
 big issue. For 4.2 or lower the current template can be used.
 
 Can't wait to see 0.11 and other updates!
 
 Thanks a lot!
 
 James
 
 On Sat, Feb 18, 2012 at 5:54 PM, Matt Aimonetti mattaimone...@gmail.com 
 wrote:
 Hey guys,
 
 A few of you asked me privately and publicly what was going on with MacRuby 
 releases and what was the plan now that Apple clearly said that ARC is the 
 future and that the GC will be deprecated in MountainLion.
 
 First off, I want to emphasis that even though ARC is the future for iOS and 
 OS X, the GC won't go away anytime soon. In other words, MacRuby runs on 
 MountainLion, so there is no real rush. But we need a plan and that plan 
 probably means not using the GC anymore :p
 
 Regarding MacRuby's releases, Laurent promised to push 0.11 and well, we are 
 waiting on him but it should happen any day now ;)
 
 Allan Delacruz, a designer friend of the project did a redesign of the site 
 but we need some help to rebase and polish the content.
 Volunteers please stand up, Allan's branch is there: 
 https://github.com/AllanD/MacRubyWebsite  Maybe someone can find some time 
 over President's day to give us an updated website? Don't hesitate to email 
 the mailing list about that.
 
 Xcode 4.3 It was reported that because Xcode is now a normal app, our 
 templates aren't installed in the right place. We need a few volunteers to 
 modify/test our installer to support the older and the newer Xcode. Or maybe 
 we can just agree to only support the latest Xcode version (thoughts?)
 
 Extra ideas for volunteers:
 Changelog for 0.11 release, let's help Laurent writing the release blog post 
 by giving him a summarized changelog
 Sublime Text 2 http://www.sublimetext.com/ is the new TextMate and I quickly 
 looked at it and adding MacRuby support seems really straightforward 
 (requires some Python scripting but hey, that's better than dealing with 
 AppleScript :p). My challenge to you is to offer a MacRuby/Cocoa package.
 Organize the various samples we have and add them to the website.
 Update the tutorials (linking to the online version of my book is fine but 
 original stuff should be encouraged, especially what I missed in the book)
 Document the MacRuby internals and help new devs contribute feature and fix 
 bugs.
 Summary: the sky isn't falling, we are all good but we need help and we need 
 to grow the team of active contributors. Tell us what you are interested in 
 helping with and let's get organized to push MacRuby to the next level.
 
 Thanks,
 
 - 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
 
 
 ___
 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
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby MountainLion + what you can do to help the project

2012-02-18 Thread Matt Aimonetti
Yes I'll do that later today, I think 1.8.7 is required and webby version 
before the latest. Did you check the guide we have on the site to contribute to 
the website, I think there is some info there (outdated but still)

-m
Sent from my iPhone

On Feb 18, 2012, at 8:01, Kevin Poorman k...@brightleafsoftware.com wrote:

 I've been working with this for the past couple of hours, and am having 
 issues with the version of webby and actual yml errors from the checkout.
 
 Is it possible to get a gemfile or information on what version of webby is 
 being used for development?
 
 (this is predicated on the assumption that I determined correctly that it is 
 a webby based site ?
 
 -pkj
 
 On Feb 18, 2012, at 3:54 AM, Matt Aimonetti wrote:
 
 Allan Delacruz, a designer friend of the project did a redesign of the site 
 but we need some help to rebase and polish the content.
 Volunteers please stand up, Allan's branch is there: 
 https://github.com/AllanD/MacRubyWebsite  Maybe someone can find some time 
 over President's day to give us an updated website? Don't hesitate to email 
 the mailing list about that.
 
 ___
 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


Re: [MacRuby-devel] MacRuby MountainLion + what you can do to help the project

2012-02-18 Thread Matt Aimonetti
Awesome. Yes it would be great to see the recipes there 

-m
Sent from my iPhone

On Feb 18, 2012, at 5:37, Kevin Poorman k...@brightleafsoftware.com wrote:

 Rubyists!
 
 I'd love to help out with a new macruby website. I'm forking/pulling the 
 linked github. 
 Regarding content, perhaps there is a place for the macruby Recipes i've been 
 kicking out on a new site? 
 
 I'm also going to take a shot at the installer here in a minute, and the 
 sublime text2 bundle (but thats a stretch goal for me, I don't know python 
 yet)
 
 -Pkj
 
 
 On Feb 18, 2012, at 3:54 AM, Matt Aimonetti wrote:
 
 Hey guys,
 
 A few of you asked me privately and publicly what was going on with MacRuby 
 releases and what was the plan now that Apple clearly said that ARC is the 
 future and that the GC will be deprecated in MountainLion.
 
 First off, I want to emphasis that even though ARC is the future for iOS and 
 OS X, the GC won't go away anytime soon. In other words, MacRuby runs on 
 MountainLion, so there is no real rush. But we need a plan and that plan 
 probably means not using the GC anymore :p
 
 Regarding MacRuby's releases, Laurent promised to push 0.11 and well, we are 
 waiting on him but it should happen any day now ;)
 
 Allan Delacruz, a designer friend of the project did a redesign of the site 
 but we need some help to rebase and polish the content.
 Volunteers please stand up, Allan's branch is there: 
 https://github.com/AllanD/MacRubyWebsite  Maybe someone can find some time 
 over President's day to give us an updated website? Don't hesitate to email 
 the mailing list about that.
 
 Xcode 4.3 It was reported that because Xcode is now a normal app, our 
 templates aren't installed in the right place. We need a few volunteers to 
 modify/test our installer to support the older and the newer Xcode. Or maybe 
 we can just agree to only support the latest Xcode version (thoughts?)
 
 Extra ideas for volunteers:
 Changelog for 0.11 release, let's help Laurent writing the release blog post 
 by giving him a summarized changelog
 Sublime Text 2 http://www.sublimetext.com/ is the new TextMate and I quickly 
 looked at it and adding MacRuby support seems really straightforward 
 (requires some Python scripting but hey, that's better than dealing with 
 AppleScript :p). My challenge to you is to offer a MacRuby/Cocoa package.
 Organize the various samples we have and add them to the website.
 Update the tutorials (linking to the online version of my book is fine but 
 original stuff should be encouraged, especially what I missed in the book)
 Document the MacRuby internals and help new devs contribute feature and fix 
 bugs.
 Summary: the sky isn't falling, we are all good but we need help and we need 
 to grow the team of active contributors. Tell us what you are interested in 
 helping with and let's get organized to push MacRuby to the next level.
 
 Thanks,
 
 - 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
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] contributing to the website

2012-02-18 Thread Matt Aimonetti
Here is the tutorial we have on the website:
http://www.macruby.org/documentation/website-contributions.html
I just added a .rvmrc file and a Gemfile (bundler) so anyone should be able
to run webby to build the site locally
https://github.com/MacRuby/MacRubyWebsite/commit/adbc7a2713e0ffcb2656da8370665800853b01ac

My fork: https://github.com/mattetti/MacRubyWebsite  should have the new
design stuff from Allan (not fully finished) and the content from master.

Thanks,

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Xcode 4.3 move template files

2012-02-18 Thread Matt Aimonetti
Great job Kevin, I would assume that a symlink would alter the code sig,
but I might be wrong.
Could you open a bug report https://bugreport.apple.com explaining what you
found out. Please also mention radar: 9828745 which refers to the problem
we had last time.

Also, don't forget to post the radar number so we can nag our Apple friends
to make sure someone is looking at it ;)

Thanks,

- Matt


2012/2/18 Kevin Poorman k...@brightleafsoftware.com

 Interesting news,

 Using instruments, I am able to monitor file activity and see rb_nibtool
 being stat'd several times by Xcode 4.2.1

 I can also see Xcode 4.3 calling for rb_nibtool. The same exception stat
 lines appear in roughly the same time frames on each startup of Xcode with
 a mac ruby project

 Unfortunately, Xcode 4.3 is looking for rb_nibtool here:
 /Applications/Xcode.app/Contents/Developer/Tools/rb_nibtool
 This doesn't actually exist.  because Xcode 4.3 is signed … I'm not sure
 how we solve this one. I wonder if symbolic links will alter the code sig ?

 -pkj

 On Feb 18, 2012, at 9:51 PM, Matt Aimonetti wrote:

  Last time that happened I had to file a bug with Apple and thy fixed it.
 This time it might be more tricky as we need to know where Xcode expects us
 to put this file. Maybe someone at Apple could help?
 
  Thanks
 
  -Matt
  Sent from my iPhone
 
  On Feb 18, 2012, at 18:35, Marc Abramowitz msabr...@gmail.com wrote:
 
  Perhaps try using DTrace to see if it's trying to open the file? (if
 you haven't already tried that)
 
  -Marc
  http://marc-abramowitz.com
  Sent from my iPhone 4
 
 
  On Feb 18, 2012, at 6:15 PM, Kevin Poorman k...@brightleafsoftware.com
 wrote:
 
  After more testing,  I cannot find any evidence that xcode4.3 is even
 attempting to find rb_nibtool
 
  could this be a policy shift on the Xcode side?
 
 
  On Feb 18, 2012, at 2:05 PM, Sean Mateus wrote:
 
  Hi Kevin,
 
  I believe that it’ll not be a problem to place the rb_nibtool into
 /usr/local/bin,
 
  unfortunately I doesn’t work for me! have you any hint?
 
  Sean
  ___
  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
  ___
  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

 ___
 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


Re: [MacRuby-devel] Xcode 4.3 move template files -- Workaround found!!!

2012-02-18 Thread Matt Aimonetti
Nice... Can someone working on the installers drop a symlink for now?

-m
Sent from my iPad

On Feb 18, 2012, at 8:40 PM, Kevin Poorman k...@brightleafsoftware.com
wrote:

tl;dr: put a symlink in /Application/xcode/contents/developer/tools that
points to your /Library/Frameworks/macruby.../rb_nibtool; restart Xcode;
get back to writing code.

I don't know whether to laugh or cry here.  -- More importantly which is
the bigger bug.

as it turns out adding a symbolic link to a signed code bundle *does not
seem to change the code sig* and the app (xCode) still runs. (on lion)

Specifically, (forgive the zsh customizations)
kpoorman@Hollis /Applications/Xcode.app/Contents/Developer/Tools *--
current working dir.*
  % sudo ln -s
/Library/Frameworks/MacRuby.framework/Versions/0.12/usr/bin/rb_nibtool .

Will let Xcode find rb_nibtool, and execute it properly. I can now, after
creating that symlink properly see my outlets etc. Additionally,
instruments shows the macruby executable executing the file at this path.

I'm assuming that a symbolic link injected into a signed app is .. bad
form… but this is at least a work around ?

So, to be clear, I'm not sure wether to file a but with apple about how i
can get signed apps to run unsigned code? OR
how else to get Xcode to trigger unsigned code.

Or maybe both.

Until we figure that one out, we can use Xcode 4.3

(and yes, I totally checked the versions this time. This isn't a false
alarm)

-Kevin



On Feb 18, 2012, at 11:28 PM, Matt Aimonetti wrote:

Great job Kevin, I would assume that a symlink would alter the code sig,
but I might be wrong.
Could you open a bug report https://bugreport.apple.com explaining what you
found out. Please also mention radar: 9828745 which refers to the problem
we had last time.

Also, don't forget to post the radar number so we can nag our Apple friends
to make sure someone is looking at it ;)

Thanks,

- Matt


2012/2/18 Kevin Poorman k...@brightleafsoftware.com

 Interesting news,

 Using instruments, I am able to monitor file activity and see rb_nibtool
 being stat'd several times by Xcode 4.2.1

 I can also see Xcode 4.3 calling for rb_nibtool. The same exception stat
 lines appear in roughly the same time frames on each startup of Xcode with
 a mac ruby project

 Unfortunately, Xcode 4.3 is looking for rb_nibtool here:
 /Applications/Xcode.app/Contents/Developer/Tools/rb_nibtool
 This doesn't actually exist.  because Xcode 4.3 is signed … I'm not sure
 how we solve this one. I wonder if symbolic links will alter the code sig ?

 -pkj

 On Feb 18, 2012, at 9:51 PM, Matt Aimonetti wrote:

  Last time that happened I had to file a bug with Apple and thy fixed it.
 This time it might be more tricky as we need to know where Xcode expects us
 to put this file. Maybe someone at Apple could help?
 
  Thanks
 
  -Matt
  Sent from my iPhone
 
  On Feb 18, 2012, at 18:35, Marc Abramowitz msabr...@gmail.com wrote:
 
  Perhaps try using DTrace to see if it's trying to open the file? (if
 you haven't already tried that)
 
  -Marc
  http://marc-abramowitz.com
  Sent from my iPhone 4
 
 
  On Feb 18, 2012, at 6:15 PM, Kevin Poorman k...@brightleafsoftware.com
 wrote:
 
  After more testing,  I cannot find any evidence that xcode4.3 is even
 attempting to find rb_nibtool
 
  could this be a policy shift on the Xcode side?
 
 
  On Feb 18, 2012, at 2:05 PM, Sean Mateus wrote:
 
  Hi Kevin,
 
  I believe that it’ll not be a problem to place the rb_nibtool into
 /usr/local/bin,
 
  unfortunately I doesn’t work for me! have you any hint?
 
  Sean
  ___
  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
  ___
  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

 ___
 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


___
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


Re: [MacRuby-devel] Rubygems version

2012-02-07 Thread Matt Aimonetti
It's always quite a lot of work, especially when a new release is pushed
weekly. Could you open a ticket tho?

Thanks

On Mon, Feb 6, 2012 at 2:21 PM, Gabriel Gilder gabriel.gil...@gmail.comwrote:

 Hi, just wondering if there are plans to bring the version of Rubygems
 that is bundled with MacRuby up to date any time soon. The current version
 with MacRuby 0.10 is Rubygems 1.4.2 -- quite a bit behind standard
 Rubygems, which is at 1.8.15. This becomes a problem when certain gems are
 configured to only install on fairly recent versions of Rubygems...

 Thanks,
 -Gabriel


 ___
 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


Re: [MacRuby-devel] MacRuby challenge

2011-12-20 Thread Matt Aimonetti
Confirmed to work on my recent MacBook Pro.

- Matt

On Tue, Dec 20, 2011 at 11:19 AM, Alan Skipp al_sk...@fastmail.fm wrote:

 The version below supports 640x480 and 1280x720 resolutions.

 https://gist.github.com/1501766

 I've also added support for multiple live video Santas.
 I'm not keen on my use of class variables to store images, but it was the
 only way I could think of to prevent repeatedly downloading the same image.

 Al




 On 20 Dec 2011, at 13:53, Jordan K. Hubbard wrote:

 Yeah, I figured as much and was able to fix it by making that change right
 after reporting the bug, but shouldn't we be able to some how make this
 camera resolution independent?

 I'm no expert on the AvCapture class, but AVCaptureSessionPresetHigh is
 another preset which at least does not hard-code the resolution of the
 camera, leaving as the sole exercise to the reader the size of the frame.
  I'm not sure how to query that bit of info, and on the MacBook Air the
 720p resolution results in the same incorrect offset for mustache, glasses
 and hat - only 640x480 delivers the correct results there.  Clearly, we
 haven't quite made this hardware independent yet, but we're getting closer
 I think!

 - Jordan

 P.S. Kudos to Matt for posting such an interesting and amusing challenge!
  I've already learned far more about the AVCaptureSession class than I
 would have ever been motivated to learn otherwise, and I work for the
 company! :)

 On Dec 20, 2011, at 2:24 PM, Paul Vinieratos wrote:

 oh.. I changed the preset. replace all 1280 with 640 and all 720 with 480
 and check again.

 On 20 Δεκ 2011, at 15:20, Jordan K. Hubbard j...@apple.com wrote:


 On Dec 20, 2011, at 11:34 AM, Pavlos Vinieratos wrote:

 https://gist.github.com/1501117
 how is that? :)


 Now broken on the MacBook Air. :-)

 2011-12-20 14:19:52.115 macruby[4131:60b] *** Can't add
 AVCaptureDeviceInput: 0x401336a00 [FaceTime Camera (Built-in)] because
 the device does not support AVCaptureSessionPreset1280x720.  Use
 -[AVCaptureDevice supportsAVCaptureSessionPreset:].

 - Jordan

 ___
 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


 ___
 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


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] A Future for MacRuby

2011-12-20 Thread Matt Aimonetti

 No one outside of Apple can integrate it with XCode, or allow it on iOS
 devices.


While the XCode part is partly true (due to limited APIs to say the least),
MacRuby doesn't need to be blessed by Apple to run on iOS. Legally, Apple
isn't blocking anything.

I see that as a double edged sword, yes Apple support allowed MacRuby to be
where it is at, but IMHO, it also limits/restricts the project, or at least
Apple's contribution on some aspect that the community is interested in. As
someone mentioned on twitter the other day, some major parts of OS X are
built/using MacRuby such as the PodcastProducer (or whatever the name is).
But I personally prefer my open source project to be a bit
more independent. If you want full Apple support, use Objective-C, if you
are interested in what MacRuby has to offer and are willing to take a
(small) risk, take the leap. Furthermore, I think too many people rely on
the fact that MacRuby is an Apple backed project and therefore don't
contribute/participate to the project, which is quite regrettable.

The future of MacRuby? MacRuby isn't going anywhere, we are having some
technical hosting issues pushing the 0.11 release which should be solved
soon hopefully. 0.11 is hopefully the last release before 1.0.
Once 1.0 will be out, we will be able to focus on the next big things.

As shown in the various email threads and the interesting projects people
are building, MacRuby is solid and fun. The challenge seems to be that the
interest around the OS X app store isn't as big as expected and maybe we
should seriously consider spend some resources on an iOS version?

- Matt



On Tue, Dec 20, 2011 at 4:25 PM, Jeff Hemmelgarn jhemm...@gmail.com wrote:

 As someone who has been trying to help in my vanishing spare time, the
 actions of Apple with regard to MacRuby are very important to my
 motivation.  No one outside of Apple can integrate it with XCode, or allow
 it on iOS devices.  If these things don't happen, MacRuby will be much less
 than it could be if these things do happen.  So, it would be very good for
 external support of the project to get real indications that Apple is at
 least beneficent toward the project if not directly dedicating resources.

 Jeff Hemmelgarn

 On Dec 20, 2011, at 3:04 PM, Jordan K. Hubbard wrote:

  MacRuby is an open source project and, as such, is (and always has been)
 free to seek or employ additional resources entirely on its own; it does
 not need Apple to hand-hold or broker such an arrangement, assuming that
 such was even possible or desirable.
 
  While it is also true that Apple has historically put a fair amount of
 energy into MacRuby, playing a significant role in bootstrapping it to the
 (IMO, quite functional) state it is in today, the greater MacRuby community
 should certainly not take this in any way as an indication that it should
 simply wait passively on the sidelines vs taking an active role in
 determining its future.  MacRuby, just as with pretty much every other
 dialect or implementation of Ruby, is not (or at least shouldn't be)
 something driven by a single person or corporation.  Even Matz himself is
 not the sole arbiter of what Ruby is or can become, it being far more of a
 group effort at this point, and MacRuby is no different.  If it were a
 bird, I would say that it's spent a fair amount of time in the nest, its
 wings are fully grown, and it's fully capable of flying by itself at this
 point. :)
 
  - Jordan

 ___
 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


Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Matt Aimonetti
When I tried the live video script, the items weren't properly located either.

-m
Sent from my iPhone

On Dec 19, 2011, at 12:34, Alan Skipp al_sk...@fastmail.fm wrote:

 Hmm… curious. 
 The positioning code could certainly do with some refinement, but from my 
 testing it's close enough for rock 'n' roll, as they say. Perhaps you added 
 the code to an existing project which set-up the window/view/layer slightly 
 differently? If not, then I'm confused also…
 
 Al
 
 On 19 Dec 2011, at 14:56, Pavlos Vinieratos wrote:
 
 the mustache is off even in your original gist. am i right? or is this some 
 kind of weird setup where its works on your mac and not on mine..
 
 On Mon, Dec 19, 2011 at 4:22 PM, Alan Skipp al_sk...@fastmail.fm wrote:
 Hi,
 Could you create a new gist with your additions and post a link to it. I'll 
 then take a look and see if I can discover the problem. It could be 
 something to do with setting the anchorPoint on the CALayer, but that's just 
 a wild guess at the minute.
 
 Al
 
 
 On 19 Dec 2011, at 13:42, Pavlos Vinieratos wrote:
 
 hello alan. i was playing around with your gist, but the glasses and all 
 the extra layers are off. i positioned the layers over the face, but they 
 always stay to the right of the face, and the distance they are to the 
 right, is not even fixed. it comes closer to the face when i move to the 
 left.
 
 i'm confused..
 
 On Tue, Dec 13, 2011 at 2:07 AM, Alan Skipp al_sk...@fastmail.fm wrote:
 A bit late to the moustachioed party. But here is an attempt at the live 
 moustachification problem. The effect is perhaps more like being pursued by 
 a persistent tache, rather than wearing a tache. Those with more powerful 
 hardware (or less inclination to move around in front of the camera) may 
 have more convincing results.
 I have stolen the moustache and moustache positioning method from the 
 previous submissions - I hope that's OK. With any luck there'll be 
 something worth stealing back from my submission.
 No attempts as yet at recording the effect (AVFoundation is a scary 
 labyrinth).
 
 https://gist.github.com/1469659
 
 Al
 
 On 8 Dec 2011, at 09:23, Sean Mateus wrote:
 
  Hi Pavlos,
  as we talked yesterday on twitter; I hope we can use this code 
  https://gist.github.com/1427886 as basis for the video version your 
  mustachification-script!
 
  you can ping me on twitter @seanlilmateus
 
 
  --
  Sean Mateus
  ___
  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
 
 
 
 -- 
 Pavlos Vinieratos
 ___
 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
 
 
 
 
 -- 
 Pavlos Vinieratos
 ___
 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
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] LLVM 3.0 and MacRuby

2011-12-11 Thread Matt Aimonetti
As indicated in the readme, you have to compile MacRuby with a specific version 
of LLVM (prior 3.0)

-m
Sent from my iPhone

On Dec 11, 2011, at 16:50, Maik Kempe r...@breaking-limits.com wrote:

 Hi all,
 
 use any of you LLVM 3.0 and MacRuby or can compile MacRuby with LLVM 3.0 ? Or 
 is currently only LLVM 2.9 supported?
 
 Just getting 'Invalid ALLOCA record' if i try to compile MacRuby.
 
 MacRuby/MacRuby - [master✔]» rake
 /usr/bin/bison -o y.tab.c parse.y
 parse.y: conflicts: 1 shift/reduce
 /usr/bin/sed -f ./tool/ytab.sed -e /^#/s!y.tab.c!parse.c! y.tab.c  
 parse.c.new
 mv parse.c.new parse.c
 rm -f .objs/parse.o
 cp lex.c.blt lex.c
 /usr/bin/ruby -n tool/node_name.rb include/ruby/node.h  node_name.inc
 echo ''  .objs/kernel_data.c
 /Developer/usr/bin/llvm-gcc -arch x86_64 -fexceptions -fno-stack-protector 
 -fwrapv -I. -I./include -I./icu-1060  --emit-llvm -c kernel.c -o 
 .objs/kernel-x86_64.bc
 /usr/local/bin/opt -O3 .objs/kernel-x86_64.bc -o=.objs/kernel-x86_64.bc
 /usr/local/bin/opt: .objs/kernel-x86_64.bc: Invalid ALLOCA record
 rake aborted!
 Command failed with status (1): [/usr/local/bin/opt -O3 
 .objs/kernel-x86_64...]
 
 Thanks a lot.
 
 Maik
 ___
 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


Re: [MacRuby-devel] MacRuby challenge

2011-12-07 Thread Matt Aimonetti
Congrats to @pvinis for his mustachification script which works quite well
and does more than simply mustachify your pics:
https://img.skitch.com/20111207-k74i8ih5191xgstus4tk9ps3qq.jpg
Source code: https://gist.github.com/1442573

I know others are still working on it, and I even heard of someone working
on a real time video mustachification script!
Keep on sending your scripts.

- Matt


On Thu, Dec 1, 2011 at 5:27 PM, Matt Aimonetti mattaimone...@gmail.comwrote:

 Hey guys,

 In case you missed the tweet
 http://twitter.com/macruby/status/142271489058672640 here is a quick
 MacRuby challenge:

- modify this face detection script http://gist.github.com/1417463 to
make it mustachify passed images.

 The exercise is interesting since it makes you work outside of Xcode and
 with some low level APIs to create something hopefully cool.
 Bonus points for creative changes of the challenge (use glasses instead of
 a mustache or both or whatever you come up with).

 - Matt

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] #welovemacruby

2011-12-06 Thread Matt Aimonetti
Jonathan Penn put together a website to show your love for MacRuby and
desire to have it run on iOS: http://welovemacruby.com/
While I don't think we can really pressure Apple in doing anything, I think
it's nice to show your love.

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] ruby structure for NSOutlineView

2011-12-06 Thread Matt Aimonetti
You probably should look into CoreData or use Sequel with sqlite3.

Bonne chance et A+

- Matt

2011/12/6 François Boone francois.bo...@usherbrooke.ca

 Hi,

 Thank you very much Matt for your great app. Not only  I have learned
 about NSOutlineView, but I could also watch TV …  :)
 So now, depending of which item I select in the tree, I can view
 information in a NSTableView.
 Moreover, I can change the number of column of my NSTableView depending on
 selected item… great. Now, I have to manage the size of each column in
 order that NSTableView stays inside the main window: this doesn't seem  too
 hard

 Now, if I want to develop an app, I think I have to decide how to present
 my data, how I will store this data ( I like SQL since query language is
 very nice, so I will read again chapter 7 of your book). What I try to tell
 is I usually separate the contents of the container, and each line of code
 does one and only one thing.  But with an interface, it's more difficult to
 keep these rules and I have to make trade off to manage interface and data.

  I will going to play with macruby and Xcode… And I will probably ask more
 questions.

 Thanks and A+ (not a rate but a french code)
 François


 Le 2011-12-02 à 19:08, Matt Aimonetti a écrit :

  François, if you also want to see a practical use of a NSOutlineView
 checkout my TV app: https://github.com/mattetti/LiveTV/
 
  - Matt
 
  2011/12/2 François Boone francois.bo...@usherbrooke.ca
  Hi,
 
  Thank you very much for these links.
  I tried them and they worked more or less … since I used Xcode 3
  But I decide to upgrade my computer and now I have Lion and Xcode 4
 
  So I can continue my learnings.
 
  François
 
  Le 2011-11-26 à 16:22, Watson a écrit :
 
   Hi,
  
   My samples might help you slightly.
   - https://github.com/Watson1978/MacRuby-Samples/tree/master/SourceList
   -
 https://github.com/Watson1978/MacRuby-Samples/tree/master/SourceList2
   -
 https://github.com/Watson1978/MacRuby-Samples/tree/master/SourceListBinding
  
   enjoy! :)
  
   2011/11/27 François Boone francois.bo...@usherbrooke.ca:
   Hi,
   In the same way that this tutorial (
 http://developer.apple.com/library/mac/#featuredarticles/UsingMacRuby/_index.html),
 I try to implement a NSOutlineView controller in ruby to make a simple tree
 in the left part of a window.
   I read the documentation of NSOutlineView, tasks and I understand I
 have to write at least four methods in my controller class:
  • – outlineView:child:ofItem:
  • – outlineView:isItemExpandable:
  • – outlineView:numberOfChildrenOfItem:
  • – outlineView:objectValueForTableColumn:byItem:
   My questions are:
   1) what kind of object I have to use in ruby to fit with outlineView
 structure?
   If I understand I need a structure like:
   Parent_1 : child 1, child 2
   Parent_2 : no child
   Parent_3 : child 1, child 2, child 3
   2) Is a Hash like this:
   Hash[ Parent_1 = [child 1, child 2], Parent_2, Parent_3 =
 [child 1, child 2, child_3]]
   can be the solution?
   3) where I can find this kind of information: the mapping between
 ruby data structure and NSObject data structure (for future use)?
   4) and the last one: I think I do not understand what is item in the
 last method:
   – outlineView:objectValueForTableColumn:byItem:
   item: An item in the data source in the specified tableColumn of the
 view.
   So, if I want to make a simple tree, I should have just one column,
 and then item should be Parent_x or child_x: Is it right?
  
   Thank you for reply
   François
   ___
   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
  
 
  ___
  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

 ___
 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


Re: [MacRuby-devel] ruby structure for NSOutlineView

2011-12-02 Thread Matt Aimonetti
François, if you also want to see a practical use of a NSOutlineView
checkout my TV app: https://github.com/mattetti/LiveTV/

- Matt

2011/12/2 François Boone francois.bo...@usherbrooke.ca

 Hi,

 Thank you very much for these links.
 I tried them and they worked more or less … since I used Xcode 3
 But I decide to upgrade my computer and now I have Lion and Xcode 4

 So I can continue my learnings.

 François

 Le 2011-11-26 à 16:22, Watson a écrit :

  Hi,
 
  My samples might help you slightly.
  - https://github.com/Watson1978/MacRuby-Samples/tree/master/SourceList
  - https://github.com/Watson1978/MacRuby-Samples/tree/master/SourceList2
  -
 https://github.com/Watson1978/MacRuby-Samples/tree/master/SourceListBinding
 
  enjoy! :)
 
  2011/11/27 François Boone francois.bo...@usherbrooke.ca:
  Hi,
  In the same way that this tutorial (
 http://developer.apple.com/library/mac/#featuredarticles/UsingMacRuby/_index.html),
 I try to implement a NSOutlineView controller in ruby to make a simple tree
 in the left part of a window.
  I read the documentation of NSOutlineView, tasks and I understand I
 have to write at least four methods in my controller class:
 • – outlineView:child:ofItem:
 • – outlineView:isItemExpandable:
 • – outlineView:numberOfChildrenOfItem:
 • – outlineView:objectValueForTableColumn:byItem:
  My questions are:
  1) what kind of object I have to use in ruby to fit with outlineView
 structure?
  If I understand I need a structure like:
  Parent_1 : child 1, child 2
  Parent_2 : no child
  Parent_3 : child 1, child 2, child 3
  2) Is a Hash like this:
  Hash[ Parent_1 = [child 1, child 2], Parent_2, Parent_3 =
 [child 1, child 2, child_3]]
  can be the solution?
  3) where I can find this kind of information: the mapping between ruby
 data structure and NSObject data structure (for future use)?
  4) and the last one: I think I do not understand what is item in the
 last method:
  – outlineView:objectValueForTableColumn:byItem:
  item: An item in the data source in the specified tableColumn of the
 view.
  So, if I want to make a simple tree, I should have just one column, and
 then item should be Parent_x or child_x: Is it right?
 
  Thank you for reply
  François
  ___
  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
 

 ___
 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


[MacRuby-devel] Face detection sample

2011-12-01 Thread Matt Aimonetti
The other day @seanlilmateus wrote a quick face detection script using
MacRuby: https://gist.github.com/1386468
I cleaned up his script and made it more Ruby-like:
https://gist.github.com/1417463 as well as added support to pass your own
image.

You can try the script your self easily:
$ macruby -e $(curl -fsSL
https://raw.github.com/gist/1417463/8cd0150bf5de962468897b3da093c870a5fb53da/face_detector.rb)
;

While the script is far from perfect, I was thinking that it would be
interesting to see the MacRubyficiation of a code written by someone who
probably knows Objective-C/Cocoa but is new to Ruby.

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] MacRuby challenge

2011-12-01 Thread Matt Aimonetti
Hey guys,

In case you missed the tweet
http://twitter.com/macruby/status/142271489058672640 here is a quick
MacRuby challenge:

   - modify this face detection script http://gist.github.com/1417463 to
   make it mustachify passed images.

The exercise is interesting since it makes you work outside of Xcode and
with some low level APIs to create something hopefully cool.
Bonus points for creative changes of the challenge (use glasses instead of
a mustache or both or whatever you come up with).

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby: the definitive guide

2011-11-25 Thread Matt Aimonetti
Glad I was able to help, bonne chance avec le reste du bouquin.

- Matt

2011/11/25 François Boone francois.bo...@usherbrooke.ca

 Thank you so much for your time.
 I find my error, but for me this looks odd.
 My error comes from the Table column setting as you pointed to me.
 I made the text Field Cell editable, but not the Table Column. Since the
 Test Field Cell depends on Table Column, I suppose the settings of Table
 Column overwrite ones of Text Field Cell. That makes sense.

 I will go on with the book 
 Thanks a lot
 Have a nice day

 François


 Le 2011-11-24 à 18:18, Matt Aimonetti a écrit :

  Francois, feel free to contact me off the mailing list if you have more
 questions regarding the book.
 
 
  page 129, for Actors.
  In Table View, col. one: I can not edit the cell when I run the program.
  I open the CoreDataExample and I compare carefully my settings ...
 without find something ...
  I am on Mac OS Snow, 10.6.8 and I use Xcode3.2.6
 
  I left the old Xcode 3 example in the Git repo, can you please give it a
 try?
 
 https://github.com/mattetti/MacRuby--The-Definitive-Guide/tree/master/chapter_7
  Or maybe I misunderstood and you are saying that the example works but
 your code doesn't?
 
  If that's the case make sure your Actors array controller is set
 properly, here is a screenshot from when the code was running under Xcode 3:
  https://img.skitch.com/2025-pwuwercmpxe3tn2kit6bst9pnu.jpg
 
  And make sure you are trying to set the bindings properly, kind of like
 in this Xcode 3 example for movies:
  https://img.skitch.com/2025-cbwjmdgu6enj8sqd7wb2tw1yf3.jpg
 
  The other thing you can check is that the Table Column is marked as
 editable (in the table column settings).
 
  p130, the explanation for choosing another cell class doesn't work: In
 the identity tab, in class identity field, I can not choose NSButtonCell
 for example. What I have to do is to drag from class library the
 NSButtonCell to the cell in my table and the the class identity field is
 set to NSButtonClass. Maybe it' the right way to do this... I am just a
 beginner !
 
 
  In Xcode 4 it autocompletes... it might be a problem with Xcode 3
 behaving differently, sorry. But I'm glad you found a workaround,
 
  - Matt
 
  One more thing :)
  p130, the explanation for choosing another cell class doesn't work: In
 the identity tab, in class identity field, I can not choose NSButtonCell
 for example. What I have to do is to drag from class library the
 NSButtonCell to the cell in my table and the the class identity field is
 set to NSButtonClass. Maybe it' the right way to do this... I am just a
 beginner !
 
 
 
 
 
  On Thu, Nov 24, 2011 at 3:56 PM, Matt Aimonetti mattaimone...@gmail.com
 wrote:
  Hello François,
 
  The book covers Xcode 4.x and not 3.x, but I'll try to see what could be
 the problem and I'll get back to you shortly.
 
  - Matt
 
 
  2011/11/24 François Boone francois.bo...@usherbrooke.ca
  HI,
 
  I don't know if it's the right forum to post my question and I apologize
 if not.
 
  I have just bought The definitive guide to learn Macruby and tools to
 develop some applications.
  However, I have a problem.
 
  page 129, for Actors.
  In Table View, col. one: I can not edit the cell when I run the program.
  I open the CoreDataExample and I compare carefully my settings ...
 without find something ...
  I am on Mac OS Snow, 10.6.8 and I use Xcode3.2.6
 
  One more thing :)
  p130, the explanation for choosing another cell class doesn't work: In
 the identity tab, in class identity field, I can not choose NSButtonCell
 for example. What I have to do is to drag from class library the
 NSButtonCell to the cell in my table and the the class identity field is
 set to NSButtonClass. Maybe it' the right way to do this... I am just a
 beginner !
 
  Thank you for reply.
 
  Have a nice day.
  François
 
 
  ___
  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

 ___
 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


Re: [MacRuby-devel] Macruby dispatch problem

2011-11-25 Thread Matt Aimonetti

 Once again, I don't if it's the appropriate forum to post this question.


In the doubt... post.

This is the main place to discuss MacRuby related things, so feel free to
post, worst case scenario, someone will (hopefully) nicely let you know if
you are posting in the wrong forum.

- Matt

2011/11/25 François Boone francois.bo...@usherbrooke.ca

 Oups ...
 You have the point.
 I am very sorry
 François

 Le 2011-11-25 à 13:13, Steve Clarke a écrit :

  I think you just need
 
  require 'rubygems'
 
  before you require 'dispatch'
 
  Steve
 
  On 25 Nov 2011, at 17:59, François Boone wrote:
 
  Hi,
 
  Once again, I don't if it's the appropriate forum to post this question.
 
  I have a problem with the dispatch gem on my mac.
 
  1) Problem:
  $ macirb
  irb(main):001:0 require 'dispatch'
  LoadError: no such file to load -- dispatch
 
  2) My configuration:
  -- MacBook Pro, 2.5 GHz Intel Core 2 Duo (yes, an old one. Since
 Christmas is close and you would like to give me a gift  :) )
  -- Snow Leopard 10.6.8
   64 bits on ( In system information: Noyau et extensions 64 bits :
   Oui)
  -- $ macruby -v
   MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64]
  -- $ macgem query --local
   *** LOCAL GEMS ***
   dispatch (0.0.1)
   mspec (1.5.17)
 
  Thanks a lot for reply
  François
 
  PS:
  Is there a forum for beginner questions like mine, because I do not
 want to bother you with these basic questions
  ___
  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
 

 ___
 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


Re: [MacRuby-devel] ApplicationSupport framework

2011-11-25 Thread Matt Aimonetti
If you are not on Lion (OS X 10.7x), you need to install BridgeSupport
preview 3:  http://www.macruby.org/files/BridgeSupport%20Preview%203.zip
Let us know if that helped,

- Matt

On Fri, Nov 25, 2011 at 6:54 PM, Kevin Colyar ke...@colyar.net wrote:

 All,

 I'm unable to access any ApplicationSupport framework constants or methods
 ( AXAPIEnabled(), AXUIElementCreateApplication(), etc) in my MacRuby 0.10
 application.  However, the other developer on the project is able to,
 apparently since he is running OSX 10.7.

 Anyone know if there is some kind of bridge support difference on 10.7?

 Thanks,
 Kevin

 --
 Kevin Colyar
 http://kevin.colyar.net


 ___
 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


Re: [MacRuby-devel] MacRuby: the definitive guide

2011-11-24 Thread Matt Aimonetti
Hello François,

The book covers Xcode 4.x and not 3.x, but I'll try to see what could be
the problem and I'll get back to you shortly.

- Matt

2011/11/24 François Boone francois.bo...@usherbrooke.ca

 HI,

 I don't know if it's the right forum to post my question and I apologize
 if not.

 I have just bought The definitive guide to learn Macruby and tools to
 develop some applications.
 However, I have a problem.

 page 129, for Actors.
 In Table View, col. one: I can not edit the cell when I run the program.
 I open the CoreDataExample and I compare carefully my settings ... without
 find something ...
 I am on Mac OS Snow, 10.6.8 and I use Xcode3.2.6

 One more thing :)
 p130, the explanation for choosing another cell class doesn't work: In the
 identity tab, in class identity field, I can not choose NSButtonCell for
 example. What I have to do is to drag from class library the NSButtonCell
 to the cell in my table and the the class identity field is set to
 NSButtonClass. Maybe it' the right way to do this... I am just a beginner !

 Thank you for reply.

 Have a nice day.
 François


 ___
 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


Re: [MacRuby-devel] MacRuby: the definitive guide

2011-11-24 Thread Matt Aimonetti
Francois, feel free to contact me off the mailing list if you have more
questions regarding the book.


page 129, for Actors.
 In Table View, col. one: I can not edit the cell when I run the program.
 I open the CoreDataExample and I compare carefully my settings ... without
 find something ...
 I am on Mac OS Snow, 10.6.8 and I use Xcode3.2.6


I left the old Xcode 3 example in the Git repo, can you please give it a
try?
https://github.com/mattetti/MacRuby--The-Definitive-Guide/tree/master/chapter_7
Or maybe I misunderstood and you are saying that the example works but your
code doesn't?

If that's the case make sure your Actors array controller is set properly,
here is a screenshot from when the code was running under Xcode 3:
https://img.skitch.com/2025-pwuwercmpxe3tn2kit6bst9pnu.jpg

And make sure you are trying to set the bindings properly, kind of like in
this Xcode 3 example for movies:
https://img.skitch.com/2025-cbwjmdgu6enj8sqd7wb2tw1yf3.jpg

The other thing you can check is that the Table Column is marked as
editable (in the table column settings).

p130, the explanation for choosing another cell class doesn't work: In the
 identity tab, in class identity field, I can not choose NSButtonCell for
 example. What I have to do is to drag from class library the NSButtonCell
 to the cell in my table and the the class identity field is set to
 NSButtonClass. Maybe it' the right way to do this... I am just a beginner !



In Xcode 4 it autocompletes... it might be a problem with Xcode 3 behaving
differently, sorry. But I'm glad you found a workaround,

- Matt

One more thing :)
p130, the explanation for choosing another cell class doesn't work: In the
identity tab, in class identity field, I can not choose NSButtonCell for
example. What I have to do is to drag from class library the NSButtonCell
to the cell in my table and the the class identity field is set to
NSButtonClass. Maybe it' the right way to do this... I am just a beginner !





On Thu, Nov 24, 2011 at 3:56 PM, Matt Aimonetti mattaimone...@gmail.comwrote:

 Hello François,

 The book covers Xcode 4.x and not 3.x, but I'll try to see what could be
 the problem and I'll get back to you shortly.

 - Matt


 2011/11/24 François Boone francois.bo...@usherbrooke.ca

 HI,

 I don't know if it's the right forum to post my question and I apologize
 if not.

 I have just bought The definitive guide to learn Macruby and tools to
 develop some applications.
 However, I have a problem.

 page 129, for Actors.
 In Table View, col. one: I can not edit the cell when I run the program.
 I open the CoreDataExample and I compare carefully my settings ...
 without find something ...
 I am on Mac OS Snow, 10.6.8 and I use Xcode3.2.6

 One more thing :)
 p130, the explanation for choosing another cell class doesn't work: In
 the identity tab, in class identity field, I can not choose NSButtonCell
 for example. What I have to do is to drag from class library the
 NSButtonCell to the cell in my table and the the class identity field is
 set to NSButtonClass. Maybe it' the right way to do this... I am just a
 beginner !

 Thank you for reply.

 Have a nice day.
 François


 ___
 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


Re: [MacRuby-devel] rubyfying Cocoa iterators

2011-11-17 Thread Matt Aimonetti
you could also create a module and mix it in with the objects you want have
the custom methods defined in.

- Matt

On Thu, Nov 17, 2011 at 3:21 PM, Kam Dahlin hax...@me.com wrote:

 If you didn't want to use a category, you could do:

 orderedSet = NSOrderedSet.orderedSetWithArray([1, 2, 3])
 orderedSet.class.send(:define_method, :each) do
   self.array.each do |item|
   yield item
   end
 end

 orderedSet.each do |item|
puts item
 end

 This method also has the advantage of capturing local scope, if needed.

 hth
 kam

 On Nov 17, 2011, at 8:22 AM, techzen wrote:

  The Cbjective-C way to handle this would be to put a category that
 provided an `each` method on NSOrderedSet. Then when you called `each` it
 would just work. Ruby has a similar functionality but I can't remember
 right now what it's called.
 
  Using a category would be optimal in the case of Core Data because in
 some instances you can actually evoke a method as part of a key path when
 sending Key-Value messages.
 
  Shannon
 
  On Nov 16, 2011, at 4:11 AM, Jean-Denis MUYS wrote:
 
  I have this ordered Core Data to-many relation named operations that
 I want to iterate over. I wrote:
 
self.operations.each { | operation | operation.doSomething }
 
  However this fails because self.operations returns an NSOrderedSet and
 NSOrderedSet doesn't have an 'each' method.
 
  I was able to use the 'enumerateObjectsUsingBlock' method of
 NSOrderedSet which is working fine.
 
  My question is: what would be the MacRuby way to add an 'each' method
 to NSOrderedSet?
 
  Thanks,
 
  Jean-Denis
 
 
 
  ___
  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

 ___
 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


Re: [MacRuby-devel] Write your own version of Siri in MacRuby

2011-11-15 Thread Matt Aimonetti
Nice, Florian's version is much more complete, mine is merely an example to get 
people started.

-m
Sent from my iPhone

On Nov 15, 2011, at 7:14, Eloy Duran e...@dekleineprins.me wrote:

 There’s also James by Florian Hanke: https://github.com/floere/james
 
 On Mon, Nov 14, 2011 at 5:57 PM, Matt Aimonetti mattaimone...@gmail.com 
 wrote:
 I extracted an old demo I had made for RubyConf which shows how to use the
 voice recognizer feature of OS X to implement an app which could be the Siri
 equivalent for OS X:
 https://github.com/mattetti/MacRuby-Siri
 The code is straight forward, the app runs in the top menu. Don't forget to
 turn on the voice recognition feature before testing the app.
 - 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
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] ScriptingBridge browser project

2011-11-15 Thread Matt Aimonetti
Since a few of you asked about ScriptingBridge within the last week or so,
I started working on a very very very basic app showing you the available
methods.
I don't have much free time so I really expect you guys to pick it up and
make it awesome.

Here is a screenshot of what I have so far:
https://img.skitch.com/2015-dy4wrh9ppbybhxm4j4xn33ip9h.jpg
Source code: https://github.com/mattetti/MacRuby-ScriptingBridge-Browser

At the moment, the header file is hardcoded instead of being generated on
the fly using sdef/sdp, the methods/properties documentation doesn't show
yet, there isn't any REPL setup, the constants are missing and I'm pretty
sure the hacked up parser is buggy.

Hopefully that will be enough to get some of you excited and involved with
this project.

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Scripting OmniGraffle

2011-11-15 Thread Matt Aimonetti
Sophie, alloc.init is the same as new in Ruby and probably make  in
applescript. Basically, alloc allocate an object of a given type and
initialize it.
All instances of a class can be initiated using alloc.init.
If you look at my previous post, I started working on an application that
document the ScriptingBrige interfaces, here is a screenshot:
https://img.skitch.com/2015-dy4wrh9ppbybhxm4j4xn33ip9h.jpg

From what I'm seeing the code you pasted missed a way to fetch the canvas
object.
But canvas is an instance of Omnicanvas which has a #shapes method
returning an array to which Kam adds the shape previously created.

I hope that helps.

- Matt

On Tue, Nov 15, 2011 at 4:43 PM, Sophie itsme...@hotmail.com wrote:

 Sorry for the sloppy subject line in my earlier question.

 Thanks, Kam, Matt for your very helpful replies.

 Kam, any idea how I would initialize the alloc'd shape to be e.g. a Circle
 of some size at some position?

 I generated the files with sdef  gen_bridge_metadata, found lots of
 useful things there. Is there something in these files that would lead me
 to:

 shape = OmniGraffleShape.alloc.init
 canvas.shapes.addObject shape

 ?  I don't see either alloc or init, or addObject in the 2 files.

 Also, is there some reason why there is no corresponding make ... method
 in either file? Applescript gladly seems to call make (so does Ruby
 Appscript) on doc, canvas, or layer ... but I'm no Applescript guru :-(

 Thanks !!


 ___
 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


Re: [MacRuby-devel] MacRuby promise delivered

2011-11-15 Thread Matt Aimonetti
This is great Jean-Denis, thanks a lot.
A few notes, if you look at:
https://github.com/jdmuys/MacRubyReload/blob/master/MacRubyReload/AppDelegate.rb#L17-18
You don't need to end your lines of code by a semi colon and when using
puts, a return carriage is automatically used (use print if you don't want
that behavior).

- Matt

On Tue, Nov 15, 2011 at 3:01 PM, Jean-Denis MUYS jdm...@kleegroup.comwrote:

 Following up on my Friday suggestion, I am happy to announce that I
 implemented a first version a Xcode MacRuby projects that dynamically
 reloads Ruby source code into a running application, allowing for a very
 dynamic incremental programming style.

 go to https://github.com/jdmuys/MacRubyReload to download the project.
 The ReadMe.markDown text file gives full instructions.

 Hopefully MacRuby Xcode templates can evolve to automatically provide a
 similar facility.

 This is all very simple and very primitive. There is a lot of room for
 improvement. I also apologize for my Ruby style: I probably haven't written
 more than 100 or so lines of Ruby code overall yet.

 I hope this gets the ball rolling.

 Jean-Denis

 ___
 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


Re: [MacRuby-devel] anyone using WebKit to generate dialogs?

2011-11-14 Thread Matt Aimonetti
As a reminder you can get MacRuby to talk to JS in a webkit instance as
shown there:

https://github.com/mattetti/RubyConfX-code/blob/master/ps3controller/demo.rb#L16-18

On Mon, Nov 14, 2011 at 2:20 AM, Michael Pitra mich...@pitra.at wrote:


 I have a similar approach in one of my applications: a WebKit view
 embedded in a custom window. All code is MacRuby except the custom window,
 I only managed to do this in pure Cocoa. The content of the WebKit view is
 then rendered by appending HTML content to a string.

 Michael


 - Ursprüngliche Mail -
 Von: Rich Morin r...@cfcl.com
 An: macruby-devel@lists.macosforge.org
 Gesendet: Sonntag, 13. November 2011 18:07:37
 Betreff: [MacRuby-devel] anyone using WebKit to generate dialogs?

 Google SketchUp's WebDialog class allows Ruby plugins to
 generate, launch, and support interactive dialogs, using
 HTML and JavaScript.  Basically, the plugin:

 *  sets up some callback code
 *  generates some HTML (etc) code
 *  points SketchUp at the HTML

 SketchUp then puts up a window whose layout is specified
 by the HTML (etc) code.  User actions may be handled by
 JavaScript and/or callbacks to the Ruby plugin.

 Although there are some awkward aspects to this approach,
 I like the ability to generate dynamic content, use CSS
 and jQuery, etc.


 It looks like WebKit could provide similar capabilities,
 using MacRuby as the back end.  I'm curious whether
 anyone has been playing with this approach, possibly using
 HotCocoa magic to tidy things up.

 -r
 --
 http://www.cfcl.com/rdmRich Morin
 http://www.cfcl.com/rdm/resume r...@cfcl.com
 http://www.cfcl.com/rdm/weblog +1 650-873-7841

 Software system design, development, and documentation
 ___
 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

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby promise

2011-11-14 Thread Matt Aimonetti
Very good point Jean Denis. You are totally right, it shouldn't be hard to
reload all the Ruby source while the code is running. One thing tho, you
might also have to reset the state of your application, including its
drawing state. But maybe we could leave that up to the developers.
What I'm thinking is to test this theory, we could write a small
application addon which adds an extra window calling into 2 methods: reload
and reset.
Reload would basically do rb_main.rb does, reset would reset the state of
the app after reloading the source files.
We should also be able to open a REPL window to introspect the code in real
time. I believe Alloy or Vincent were working on something similar.

- Matt


On Mon, Nov 14, 2011 at 1:15 PM, Jean-Denis MUYS jdm...@kleegroup.comwrote:

 Reading from many messages on this list, I get the impression that MacRuby
 users are more often than not Ruby programmers coming to Mac programming.

 I come from the opposite side: I am an experienced Cocoa developer and
 Ruby newbie.

 I came to MacRuby for one major reason (and perhaps a few secondary
 reasons): to speed up development of my Mac applications.

 My vision of speeding up Mac development is basically to finally reach
 again what I had almost 20 years ago when I was programming in Macintosh
 Common Lisp on the Mac for the Mac: developing within a running
 application, without having to quit it, dynamically adding or modifying
 classes or methods through a read-eval-print loop.

 Yet, after having read through Matt's book, this is not what I got. On the
 contrary, my workflow is at the opposite end of the spectrum:
 built-run-test-quit loop, similar to what I'm used to with Objective-C.
 Except it's even worse: at least, typos are caught early with Objective-C.
 With MacRuby, they aren't, and quite often, I spend a considerable time
 reaching the point I'm working on before I get an exception from my typo.

 Since MacRuby *does* have a REPL in the macirb terminal program, I really
 hope I missed something (that unfortunately is not described in Matt's
 book): what would be an efficient workflow developing a MacRuby Macintosh
 application with Xcode?

 For example, I see that all Ruby code is loaded in rb_main.rb by walking
 through the app bundle resource directory and calling require(path) on all
 found ruby files.

 Would it be possible to require again those files after they have been
 modified, without quitting the application? Yes it would still require
 building the app after each change in order to copy the changed ruby files
 back into the app bundle, but at least Xcode is happy to do so without
 requiring the app to quit (just don't ask it to Run).

 Even better, would it be possible to optionally require the ruby files
 from the source directory rather than from the app bundle (during
 development) based on some scheme or configuration dependent symbol? Then
 building the app would not even be necessary after changes limited to Ruby
 source code.

 I would envision MacRuby Xcode templates to include such improvements in
 rb_main.rb, and also to add a Debug menu of some sort to the built app
 from which the developer could select a command to reload any/all changed
 Ruby file. This could even be automated using File System events.

 The workflow loop would then become:

 1- test some app action
 2- notice a bug. Don't quit. Switch to Xcode.
 3- change the relevant Ruby file
 4- save
 5- there is no step 5

 I can't see any reason why this would not possible, and even easy, Ruby
 newbie as I may be. To me, this is the major MacRuby promise, and that
 promise is not kept yet.

 Am I out of my mind?

 Thanks.

 Jean-Denis

 (and add a Ruby console/listener to the built app too, in which the REPL
 is working in the context of the running app).
 ___
 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


[MacRuby-devel] Write your own version of Siri in MacRuby

2011-11-14 Thread Matt Aimonetti
I extracted an old demo I had made for RubyConf which shows how to use the
voice recognizer feature of OS X to implement an app which could be the
Siri equivalent for OS X:
https://github.com/mattetti/MacRuby-Siri

The code is straight forward, the app runs in the top menu. Don't forget to
turn on the voice recognition feature before testing the app.

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby promise

2011-11-14 Thread Matt Aimonetti

 I probably even could implement a rough bare bone version.


I'm currently traveling but I would be glad to assist you.

- Matt



On Mon, Nov 14, 2011 at 2:09 PM, Jean-Denis MUYS jdm...@kleegroup.comwrote:


  On 14 nov. 2011, at 17:54, macruby-devel-requ...@lists.macosforge.org
  wrote:

 Date: Mon, 14 Nov 2011 08:53:14 -0800
 From: Nat Brown nat...@gmail.com
 To: MacRuby development discussions.
 macruby-devel@lists.macosforge.org
 Subject: Re: [MacRuby-devel] MacRuby promise
 Message-ID:
 cag9ekxucdh03nx8numzzrdb2c9a7yhtnwaguzrf0ovowhce...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1


 this would certainly be useful, but frankly i think that having proper
 debugger-integration support in xcode (see
 http://www.macruby.org/trac/ticket/1208 and issue 3037631 in
 http://bugreporter.apple.com) would go dramatically farther towards making
 macruby useful. edit-and-continue would be great, but setting a breakpoint:
 priceless. thx, n@


  This is a false dichotomy: my suggestion and yours are orthogonal
 (except perhaps for resource allocation consideration).

 You are right of course that proper debugging is desirable (MCL also had
 that 20 years ago), perhaps more so than what I am suggesting, but I'm
 going for the low-hanging fruits here. Moreover, adding Ruby debugging to
 Xcode would require Apple willingness to evolve Xcode which, given the
 glacial pace of Xcode 4 bug fixing and almost total deafness to developer
 requests, is far too much to ask. What I describe on the other hand,
 require no such cooperation. I probably even could implement a rough bare
 bone version.

  Jean-Denis




 ___
 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


Re: [MacRuby-devel] MacRuby-devel Digest, Vol 45, Issue 20

2011-11-14 Thread Matt Aimonetti
Kam is right, here is a quick preview using the parser I mentioned in a
previous post and the header file I generated using the following command:
$ sdef /Applications/OmniGraffle\ Professional\ 5.app/ | sdp -fh --basename
omni

You will find the generated documentation, the parser code and the header
file there: https://gist.github.com/1365637

I hope it helps.

- Matt


On Mon, Nov 14, 2011 at 8:19 PM, Kam Dahlin hax...@me.com wrote:

 You will need to create a shape object and then add it to the correct
 container.
 something like:

 shape = OmniGraffleShape.alloc.init
 canvas.shapes.addObject shape

 The different shape classes can be views by generating the OmniGraffle
 scriptingbridge header with:
 sdef /Path/To/OmniGraffle.app | sdp -fh -o /header/save/path -A --basename
 OmniGraffle

 You may also want to generate the .bridgesupport file
 gen_bridge_metadata -c '-I/Path/To/OmniGraffle.h' -o
 /path/to/save/OmniGraffle.bridgesupport

 And include that bridgsupport file in your script with
 load_bridge_support_file '/path/to/OmniGraffle.bridgesupport'

 Matt has a great article on using ScriptingBridge with MacRuby:
 http://merbist.com/2010/01/17/controlling-itunes-with-macruby/

 hth
 kam


 On Nov 14, 2011, at 3:06 PM, Sophie wrote:

  I am trying to automate OmniGraffle using MacRuby, and cannot figure out
 how to map Applescript to available MacRuby methods. For example, to add a
 shape takes roughly this Applescript:
 
  tell application OmniGraffle Professional
tell canvas of front window
make new shape at end of graphics with properties {size:
 {10,80}, origin: {9,9}}
end tell
  end tell
 
  I can get a handle on the OmniGraffle application, on its document,
 canvas, etc. Can get a list of methods as below. But cannot find anything
 corresponding to the above make new shape.
 
  Is there any way to browse a MacRuby view of the scripting dictionary?
 
  Thanks for any pointers!
 
  Sophie
 
  framework 'ScriptingBridge'
 
  $omni =
 SBApplication.applicationWithBundleIdentifier(com.omnigroup.OmniGrafflePro)
 
  $document = $omni.windows[0].document
 
  $canvas = $omni.windows[0].canvas
 
  $canvas.methods(true,true).sort
 
  = [:adjustsPages, :assembleSubgraph:tableShape:, :bold,
 :canvasBackground, :canvasSize, :childWithClass:code:keyForm:keyData:,
 :childWithClass:code:keyForm:keyData:length:type:,
 :childWithClass:code:keyForm:keyData:type:,
 :childWithClass:code:keyForm:keyDesc:, :closeSaving:savingIn:,
 :columnAlignment, :columnSpacing, :connectTo:withProperties:, :context,
 :delete, :descriptionForSpecifier, :duplicateTo:withProperties:,
 :elementArrayWithCode, :elementWithCode:ID:, :elementWithCode:atIndex:,
 :elementWithCode:named:, :encodeWithCoder, :exists, :flipOver, :get,
 :graphics, :grid, :groups, :horizontalPages, :id,
 :importCategories:frameworks:instanceVariableTypes:instanceVariables:interactionAllowed:mapping:methodSignatures:methods:outlineTemplate:protocols:,
 :initWithApplication:specifier:, :initWithClass:properties:data:,
 :initWithCoder, :initWithContext:specifier:, :initWithData,
 :initWithElementCode:properties:data:, :initWithProperties, :isRang
  eS
  pecifier, :italicize, :lastError, :layers, :layout, :layoutInfo, :lines,
 :moveTo, :objectClass, :pageAdjust, :pageSize, :positionAfter,
 :positionBefore, :properties, :propertyWithClass:code:,
 :propertyWithCode, :qualifiedSpecifier, :qualify,
 :replaceReplacement:ignoreCase:regexp:string:wholeWords:, :rowAlignment,
 :rowSpacing, :saveAs:in:, :sendEvent:id:format:,
 :sendEvent:id:parameters:, :setAdjustsPages, :setCanvasSize,
 :setColumnAlignment, :setColumnSpacing, :setGrid, :setHorizontalPages,
 :setId, :setLastError, :setLayoutInfo, :setName, :setProperties,
 :setRowAlignment, :setRowSpacing, :setTo, :setVerticalPages, :shapes,
 :slideBy, :solids, :specifier, :specifierDescription, :subgraphs, :unbold,
 :underline, :unitalicize, :ununderline, :verticalPages]
 
 
 
 
 
 
  On Nov 14, 2011, at 11:19 AM, 
  macruby-devel-request@lists.macosforge.orgwrote:
 
  Send MacRuby-devel mailing list submissions to
   macruby-devel@lists.macosforge.org
 
  To subscribe or unsubscribe via the World Wide Web, visit
   http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
  or, via email, send a message with subject or body 'help' to
   macruby-devel-requ...@lists.macosforge.org
 
  You can reach the person managing the list at
   macruby-devel-ow...@lists.macosforge.org
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of MacRuby-devel digest...
 
 
  Today's Topics:
 
   1. Write your own version of Siri in MacRuby (Matt Aimonetti)
   2. Re: MacRuby promise (Jean-Denis MUYS)
   3. Re: MacRuby promise (Matt Aimonetti)
   4. Re: MacRuby promise (Nat Brown)
 
 
  --
 
  Message: 1
  Date: Mon, 14 Nov 2011 13:57:10 -0300
  From: Matt Aimonetti mattaimone...@gmail.com

Re: [MacRuby-devel] BridgeSupport (objC header file) simple parser

2011-11-11 Thread Matt Aimonetti
My guess is that JS automatically converts the object in its string
representation while in Ruby, you get the real object and you have to call
a method on it. I agree that this isn't great and I'm not a
BridgeSupport/ScriptingBridge expert so I can't tell you if that's
something wrong on SB side or Adobe's.

Good luck,

- Matt

On Fri, Nov 11, 2011 at 4:13 PM, Spencer Rose dspenc...@gmail.com wrote:



 Thanks for doing this Matt.  I have not fallen off the earth on this one.
 :)
 Trying to do a lot of research and figure this thing out.  InDesign's
 scripting
 API is complicated enough, but the way ScriptingBridge works with it is
 making me work hard.  Annoying that running these two commands in the
 following languages gives me the following discrepant results;

 Javascript In Extend Script Editor:
 app.selection[0].contents  - results in the text of whatever is selected
 (eg.. line or word or paragraph)

 Ruby run at Terminal
 puts app.selection[0].contents  - SBObject:0x209373520
 Once again, that SBObject is not incredibly helpful.

 I appreciate the parser and will definitely start posting a lot of what I
 find
 as I have some success dissecting the Scripting calls.

 Spence




 ___
 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


[MacRuby-devel] BridgeSupport (objC header file) simple parser

2011-11-08 Thread Matt Aimonetti
On my way down to RubyConf Argentina I wrote these few lines of code to
parse the Objective-C header generated by the sdef/sdp commands into a Ruby
object that I then dump to JSON.

https://gist.github.com/1349038

Usage:
$ ./bridgesupport_doc_parser.rb ~/tmp/inDesign.h


Feel free to build whatever you want with this (very basic) code, in
theory, it shouldn't be hard to write a small app showing the API provided
by a 3rd party app.

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] NSTimer.timerWithTimeInterval ?

2011-11-07 Thread Matt Aimonetti
Here is an example of a small game written entirely in MacRuby and which
uses NSTimer to run the game loop:
https://github.com/mattetti/phileas_frog/blob/master/game_loop.rb#L32-36

I hope it helps,

- Matt

On Mon, Nov 7, 2011 at 11:54 AM, Robert Feldt robert.fe...@gmail.comwrote:

 Thanks guys, I'll try to read up on some more tutorials before making
 a fool of myself again... ;)

 Cheers,

 Robert

 On Mon, Nov 7, 2011 at 8:42 PM, Richard Kilmer r...@infoether.com wrote:
  Take the calling param sequence and turn it into a 1.9 hash statement in
 order :)
 
  timer = NSTimer.timerWithTimeInterval 60, target: self, selector:
 'recheckAndUpdateTitle:', userInfo: nil, repeats: true
 
  because this is the actual selector:
 timerWithTimeInterval:target:selector:userInfo:repeats:
 
  On Nov 7, 2011, at 2:33 PM, Robert Feldt wrote:
 
  Hi,
 
  Noob to both MacRuby and Cocoa/Objective-C here (but not Ruby) so
  please forgive is this is obvious but when I try to call
 
  timer = NSTimer.timerWithTimeInterval(60, self,
  'recheckAndUpdateTitle:', nil, true)
  NSRunLoop.currentRunLoop.addTimer(timer)
 
  I get:
 
  undefined method `timerWithTimeInterval' for NSTimer:Class
 (NoMethodError)
 
  which is very confusing given:
 
 
 http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/Reference/NSTimer.html#//apple_ref/occ/cl/NSTimer
 
  and
 
  http://stackoverflow.com/questions/1449035/how-do-i-use-nstimer
 
  What am I missing here? Any advice appreciated!?
 
  --
  Thanks in advance,
 
  /Robert Feldt
  ___
  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
 



 --
 Best regards,

 /Robert Feldt
 --
 Tech. Dr. (PhD), Assoc. Professor in Software Engineering
 Chalmers, Software Engineering Dept
 Blekinge Institute of Technology, Software Engineering Research Lab
 robert.feldt (a) chalmers.se or robert.feldt (a) gmail.com
 Mobile phone: +46 (0) 733 580 580
 http://www.cse.chalmers.se/~feldt
 ___
 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


Re: [MacRuby-devel] Scripting Bridge

2011-11-06 Thread Matt Aimonetti
During my last flight I wrote a 20 lines object-C header parser which dumps
a json structure of the header (kinda weird to convert a XML to a header to
a JSON, I might want to review my approach soon or later).

I'll probably try to write a quick demo app that will load the json
structure and let you browse the API, nothing fancy but enough for someone
to hack around and make the app awesome.

- Matt


On Thu, Nov 3, 2011 at 5:08 PM, Matt Aimonetti mattaimone...@gmail.comwrote:

 If you call methods(true, true).grep /export/i on one of your objects
 and you get a method signature such as:
 exportFormat:to:showingOptions:using:versionComments:forceSave:

 That means you need to call it as shown in my example:
 page.exportFormat(tagged text/PDF, to:/Users/mattetti/tmp/page2.pdf,
 showingOptions: false, using: app.PDFExportPresets.first, versionComments:
 test, forceSave: true)

 Which is like calling a method with a param and a hash of params with the
 keys of the hash being the selector elements (it uses Ruby 1.9's hash
 format).
 exportFormat(param, key: value, key: value, key: value)

 If you look at the indesign header file the function signature looks like
 that:

 - (void) *exportFormat*:(id)format *to:*(id)to *showingOptions:*(BOOL)
 showingOptions *using:*(inDesignPDFExportPreset *)using_ *versionComments:
 *(NSString *)versionComments *forceSave:*(BOOL)forceSave;  // Exports the
 object(s) to a file.

 In blue, you can see the expected type, in bold the method signature and
 in gray the named given to the params (not important).


 I figure the index numbers means the position of the param in the list.
 This has not worked perfectly and yours did not seem to match up perfectly
 or else I am missing something.  How do we figure out syntax for these
 other
 than trial and error?



 I opened up a macirb session and used Ruby's introspection tools +
 applescript editor which has some extra hints on the expected params.
 For instance, I got a page object and I did:

  methods = (page.method(true, true) - Object.new(true, true)).sort

 That would give you an array of all the methods available on page, for
 the params, I referred to header file and the applescript editor dictionary
 doc.
 I can't find the small script I wrote, but writing a simple/dumb parser
 for the obj-c header file that would give you a proper documentation for
 all methods available should be very trivial. (I'm about to take off for a
 long flight, I might work on that if my 16 months daughter decides to sleep
 for most of the trip ;))

 The bottom line is that using BridgeScript is harder that it should be
 especially when the provided APIs aren't well designed. Ars Technical has a
 good tutorial on how to script safari and evernote:
 http://arstechnica.com/apple/guides/2011/09/tutorial-os-x-automation-with-macruby-and-the-scripting-bridge.ars

 An app that would let you pick a 3rd party app and would run sdef/sdp, let
 you browse the classes/functions, read the comments and generate a BS file
 would be of a huge help.

 Another thing that would be great is MacRuby support for OSA
 http://en.wikipedia.org/wiki/AppleScript#Open_Scripting_Architecture
 http://developer.apple.com/library/mac/#documentation/AppleScript/Conceptual/AppleScriptX/Concepts/osa.html

 I believe this is something Laurent still wants to have in for 1.0.

 - Matt





 On Thu, Nov 3, 2011 at 4:34 PM, Spencer Rose dspenc...@gmail.com wrote:

 And now I am reading chapter 8 of your book again because
 I remembered something about noMethodErrors and selectors.

 Starting to make sense.  Stay tuned.  :)

 ___
 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


Re: [MacRuby-devel] MacRuby: The Definitive Guide

2011-11-03 Thread Matt Aimonetti
Thank you Jean-Denis, I really appreciate it.

- Matt

On Thu, Nov 3, 2011 at 6:30 AM, Jean-Denis MUYS jdm...@kleegroup.comwrote:


  On 3 nov. 2011, at 13:28, Matt Aimonetti mattaimone...@gmail.com
  wrote:

  Date: Wed, 2 Nov 2011 19:46:42 -0700
 From: Matt Aimonetti mattaimone...@gmail.com
 To: MacRuby development discussions.
 macruby-devel@lists.macosforge.org
 Subject: [MacRuby-devel] MacRuby: The Definitive Guide
 Message-ID:
 CAFGi+5eZNN=ks7q8opssne2pc0sdty+2g_pdfl5vwm9suaa...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8


 Hey guys, if you pre ordered the hard copy of my book, it should arrive in
 a few days (just got mine).
 Otherwise you can buy from O'Reilly:
 http://shop.oreilly.com/product/063692723.do or Amazon:
 http://amzn.to/tVx4ng (cheaper)
 Digital versions are available on the iBooks and Kindle marketplaces and
 available in a all included format package on the O'Reilly website.

 I would sincerely appreciate if some of you could leave reviews on Amazon
 or O'Reilly, especially if my writing managed to help you out in the past.
 /infomercial

 Thanks,

 - Matt


  I just posted the following review to the Amazon page:

  If you are:

 - a Ruby developer who would like to learn Cocoa and program for the Mac

 or

 - a Cocoa Mac developer who would like to learn programming with Ruby

 then you could do a lot worse than reading Matt Aimonetti's book. It gets
 exactly what's useful by focusing on programming for Mac, on the Mac, using
 MacRuby. So it doesn't want to teach you Ruby or Cocoa. There are other
 books for that. Instead it focuses on the specific stuff:

 - What's different when programming in Ruby from programming in
 Objective-C
 - How to use Mac tools, e.g. Xcode, to develop in Ruby for the Mac
 - How the MacRuby runtime is using and integrates with the Objective-C
 runtime
 - How to call Ruby code from Objective-C and back
 - How to benefit from the interpreted nature of Ruby within a Cocoa app

 and so on.

 A very interesting look into what the future of Mac programming (and
 hopefully iOS). It helped me get up to speed very quickly with MacRuby (now
 included with OS X Lion) and saved me a *lot* of time, probably weeks. I am
 an inexperienced Ruby programmer, but a seasoned Cocoa programmer. I think
 that it would be equally useful to an experienced Ruby programmer getting
 started with Mac development.

 Highly recommended


 ___
 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


Re: [MacRuby-devel] Scripting Bridge

2011-11-03 Thread Matt Aimonetti
If you call methods(true, true).grep /export/i on one of your objects and
you get a method signature such as:
exportFormat:to:showingOptions:using:versionComments:forceSave:

That means you need to call it as shown in my example:
page.exportFormat(tagged text/PDF, to:/Users/mattetti/tmp/page2.pdf,
showingOptions: false, using: app.PDFExportPresets.first, versionComments:
test, forceSave: true)

Which is like calling a method with a param and a hash of params with the
keys of the hash being the selector elements (it uses Ruby 1.9's hash
format).
exportFormat(param, key: value, key: value, key: value)

If you look at the indesign header file the function signature looks like
that:

- (void) *exportFormat*:(id)format *to:*(id)to *showingOptions:*(BOOL)
showingOptions *using:*(inDesignPDFExportPreset *)using_
*versionComments:*(NSString
*)versionComments *forceSave:*(BOOL)forceSave;  // Exports the object(s) to
a file.

In blue, you can see the expected type, in bold the method signature and in
gray the named given to the params (not important).


I figure the index numbers means the position of the param in the list.
 This has not worked perfectly and yours did not seem to match up perfectly
 or else I am missing something.  How do we figure out syntax for these
 other
 than trial and error?



I opened up a macirb session and used Ruby's introspection tools +
applescript editor which has some extra hints on the expected params.
For instance, I got a page object and I did:

 methods = (page.method(true, true) - Object.new(true, true)).sort

That would give you an array of all the methods available on page, for
the params, I referred to header file and the applescript editor dictionary
doc.
I can't find the small script I wrote, but writing a simple/dumb parser for
the obj-c header file that would give you a proper documentation for all
methods available should be very trivial. (I'm about to take off for a long
flight, I might work on that if my 16 months daughter decides to sleep for
most of the trip ;))

The bottom line is that using BridgeScript is harder that it should be
especially when the provided APIs aren't well designed. Ars Technical has a
good tutorial on how to script safari and evernote:
http://arstechnica.com/apple/guides/2011/09/tutorial-os-x-automation-with-macruby-and-the-scripting-bridge.ars

An app that would let you pick a 3rd party app and would run sdef/sdp, let
you browse the classes/functions, read the comments and generate a BS file
would be of a huge help.

Another thing that would be great is MacRuby support for OSA
http://en.wikipedia.org/wiki/AppleScript#Open_Scripting_Architecture
http://developer.apple.com/library/mac/#documentation/AppleScript/Conceptual/AppleScriptX/Concepts/osa.html

I believe this is something Laurent still wants to have in for 1.0.

- Matt





On Thu, Nov 3, 2011 at 4:34 PM, Spencer Rose dspenc...@gmail.com wrote:

 And now I am reading chapter 8 of your book again because
 I remembered something about noMethodErrors and selectors.

 Starting to make sense.  Stay tuned.  :)

 ___
 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


[MacRuby-devel] MacRuby: The Definitive Guide

2011-11-02 Thread Matt Aimonetti
Hey guys, if you pre ordered the hard copy of my book, it should arrive in
a few days (just got mine).
Otherwise you can buy from O'Reilly:
http://shop.oreilly.com/product/063692723.do or Amazon:
http://amzn.to/tVx4ng (cheaper)
Digital versions are available on the iBooks and Kindle marketplaces and
available in a all included format package on the O'Reilly website.

I would sincerely appreciate if some of you could leave reviews on Amazon
or O'Reilly, especially if my writing managed to help you out in the past.
/infomercial

Thanks,

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Scripting Bridge

2011-11-02 Thread Matt Aimonetti
Your Snow Leopard machine needs to have the latest BridgeSupport installed:
http://www.macruby.org/files/BridgeSupport%20Preview%203.zip
Lion has the final version already installed.

We added some more info on the website and we will hopefully deploy the
updates soon when 0.11 goes live.

- Matt


On Wed, Nov 2, 2011 at 9:46 PM, Spencer Rose dspenc...@gmail.com wrote:

 So I apologize for being such a pain, I appreciate the help though.
 I have tried everything and cannot get the bridgesupport file to generate
 on my machine at work which has Snow Leopard on it.

 I came home tonight and used my MacbookAir which has Lion on it, and
 it worked perfectly. Things are working much better.  May come back with
 more questions, but this gives me the ability to at least make the basics
 work.
 Thanks again.


 ___
 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


Re: [MacRuby-devel] Scripting Bridge

2011-11-01 Thread Matt Aimonetti
I talked with Laurent and it said that the fact that the object type is
SBObject is probably done on purpose by the inDesign API.

- Matt

On Tue, Nov 1, 2011 at 12:12 PM, Matt Aimonetti mattaimone...@gmail.comwrote:

 I generated the header file and looked at the description and I think that
 the issue us that the returned value isn't cast:

 @property (copy) id appliedFont;  // The font applied to the find glyph
 preference, specified as either a font object or the name of font family.
 Can return: font, string or nothing.

 id in Objective-C means refers to an object that isn't typed (could be
 anything). That might be the reason why you get an object that isn't cast.
 There is a workaround and it's to use the properties hash:

 framework 'Foundation'
 framework 'ScriptingBridge'

 app = SBApplication.applicationWithBundleIdentifier('com.adobe.indesign')
 load_bridge_support_file 'inDesign.bridgesupport'
 doc = app.activeDocument
 doc.allParagraphStyles.each do |style|
   puts style.name
   puts style.properties[appliedFont].name
   puts ~~
 end

 In my case it returns the following:

 [No Paragraph Style]
 Minion Pro Regular
 ~~
 [Basic Paragraph]
 Minion Pro Regular
 ~~

 The available properties are:
 OTFContextualAlternate
 OTFDiscretionaryLigature
 OTFFigureStyle
 OTFFraction
 OTFHVKana
 OTFHistorical
 OTFJustificationAlternate
 OTFLocale
  OTFMark
 OTFOrdinal
 OTFOverlapSwash
 OTFProportionalMetrics
 OTFRomanItalics
 OTFSlashedZero
 OTFStretchedAlternate
 OTFStylisticAlternate
 OTFStylisticSets
 OTFSwash
 OTFTitling
 alignToBaseline
 allowArbitraryHyphenation
 appliedFont
 appliedLanguage
 appliedNumberingList
 autoLeading
 autoTcy
 autoTcyIncludeRoman
 balanceRaggedLines
 basedOn
 baselineShift
 bulletChar
 bulletsAlignment
 bulletsAndNumberingListType
 bulletsCharacterStyle
 bulletsTextAfter
 bunriKinshi
 capitalization
 characterAlignment
 characterDirection
 characterRotation
 cjkGridTracking
 composer
 desiredGlyphScaling
 desiredLetterSpacing
 desiredWordSpacing
 diacriticPosition
 digitsType
 dropCapCharacters
 dropCapLines
 dropCapStyle
 dropcapDetail
 endJoin
 fillColor
 fillTint
 firstLineIndent
 fontStyle
 glyphForm
 gradientFillAngle
 gradientFillLength
 gradientFillStart
 gradientStrokeAngle
  gradientStrokeLength
 gradientStrokeStart
 gridAlignFirstLineOnly
 gridAlignment
 gridGyoudori
 horizontalScale
 hyphenWeight
 hyphenateAcrossColumns
 hyphenateAfterFirst
 hyphenateBeforeLast
 hyphenateCapitalizedWords
 hyphenateLadderLimit
 hyphenateLastWord
 hyphenateWordsLongerThan
 hyphenation
 hyphenationZone
 id
 ignoreEdgeAlignment
 imported
 index
 jidori
 justification
 kashidas
 keepAllLinesTogether
 keepFirstLines
 keepLastLines
 keepLinesTogether
 keepRuleAboveInFrame
 keepWithNext
 keepWithPrevious
 kentenAlignment
 kentenCharacterSet
 kentenCustomCharacter
 kentenFillColor
 kentenFont
 kentenFontSize
 kentenFontStyle
 kentenKind
 kentenOverprintFill
 kentenOverprintStroke
 kentenPlacement
 kentenPosition
 kentenStrokeColor
 kentenStrokeTint
 kentenTint
 kentenWeight
 kentenXScale
 kentenYScale
 kerningMethod
 keyboardDirection
 kinsokuHangType
 kinsokuSet
 kinsokuType
 label
 lastLineIndent
 leading
 leadingAki
 leadingModel
 leftIndent
 ligatures
 maximumGlyphScaling
 maximumLetterSpacing
 maximumWordSpacing
 minimumGlyphScaling
 minimumLetterSpacing
 minimumWordSpacing
 miterLimit
 mojikumi
 name
 nextStyle
 noBreak
 numberingAlignment
 numberingApplyRestartPolicy
 numberingCharacterStyle
 numberingContinue
 numberingExpression
 numberingFormat
 numberingLevel
 numberingRestartPolicies
 numberingStartAt
 objectReference
 overprintFill
 overprintStroke
 paragraphDirection
 paragraphGyoudori
 paragraphJustification
 parent
 pointSize
 position
 positionalForm
 previewColor
 rensuuji
 rightIndent
 rotateSingleByteCharacters
 rubyAlignment
 rubyAutoAlign
 rubyAutoScaling
 rubyAutoTcyAutoScale
 rubyAutoTcyDigits
 rubyAutoTcyIncludeRoman
 rubyFill
 rubyFont
 rubyFontSize
 rubyFontStyle
 rubyOpenTypePro
 rubyOverhang
 rubyOverprintFill
 rubyOverprintStroke
 rubyParentOverhangAmount
 rubyParentScalingPercent
 rubyParentSpacing
 rubyPosition
 rubyStroke
 rubyStrokeTint
 rubyTint
 rubyType
 rubyWeight
 rubyXOffset
 rubyXScale
 rubyYOffset
 rubyYScale
 ruleAbove
 ruleAboveColor
 ruleAboveGapColor
 ruleAboveGapOverprint
 ruleAboveGapTint
 ruleAboveLeftIndent
 ruleAboveLineWeight
 ruleAboveOffset
 ruleAboveOverprint
 ruleAboveRightIndent
 ruleAboveTint
 ruleAboveType
 ruleAboveWidth
 ruleBelow
 ruleBelowColor
 ruleBelowGapColor
 ruleBelowGapOverprint
 ruleBelowGapTint
 ruleBelowLeftIndent
 ruleBelowLineWeight
 ruleBelowOffset
 ruleBelowOverprint
 ruleBelowRightIndent
 ruleBelowTint
 ruleBelowType
 ruleBelowWidth
 scaleAffectsLineHeight
 shataiAdjustRotation
 shataiAdjustTsume
 shataiDegreeAngle
 shataiMagnification
 singleWordJustification
 skew
 spaceAfter
 spaceBefore
 spanColumnMinSpaceAfter
 spanColumnMinSpaceBefore
 spanColumnType

Re: [MacRuby-devel] Scripting Bridge

2011-11-01 Thread Matt Aimonetti
I generated the header file and looked at the description and I think that
the issue us that the returned value isn't cast:

@property (copy) id appliedFont;  // The font applied to the find glyph
preference, specified as either a font object or the name of font family.
Can return: font, string or nothing.

id in Objective-C means refers to an object that isn't typed (could be
anything). That might be the reason why you get an object that isn't cast.
There is a workaround and it's to use the properties hash:

framework 'Foundation'
framework 'ScriptingBridge'

app = SBApplication.applicationWithBundleIdentifier('com.adobe.indesign')
load_bridge_support_file 'inDesign.bridgesupport'
doc = app.activeDocument
doc.allParagraphStyles.each do |style|
  puts style.name
  puts style.properties[appliedFont].name
  puts ~~
end

In my case it returns the following:

[No Paragraph Style]
Minion Pro Regular
~~
[Basic Paragraph]
Minion Pro Regular
~~

The available properties are:
OTFContextualAlternate
OTFDiscretionaryLigature
OTFFigureStyle
OTFFraction
OTFHVKana
OTFHistorical
OTFJustificationAlternate
OTFLocale
OTFMark
OTFOrdinal
OTFOverlapSwash
OTFProportionalMetrics
OTFRomanItalics
OTFSlashedZero
OTFStretchedAlternate
OTFStylisticAlternate
OTFStylisticSets
OTFSwash
OTFTitling
alignToBaseline
allowArbitraryHyphenation
appliedFont
appliedLanguage
appliedNumberingList
autoLeading
autoTcy
autoTcyIncludeRoman
balanceRaggedLines
basedOn
baselineShift
bulletChar
bulletsAlignment
bulletsAndNumberingListType
bulletsCharacterStyle
bulletsTextAfter
bunriKinshi
capitalization
characterAlignment
characterDirection
characterRotation
cjkGridTracking
composer
desiredGlyphScaling
desiredLetterSpacing
desiredWordSpacing
diacriticPosition
digitsType
dropCapCharacters
dropCapLines
dropCapStyle
dropcapDetail
endJoin
fillColor
fillTint
firstLineIndent
fontStyle
glyphForm
gradientFillAngle
gradientFillLength
gradientFillStart
gradientStrokeAngle
gradientStrokeLength
gradientStrokeStart
gridAlignFirstLineOnly
gridAlignment
gridGyoudori
horizontalScale
hyphenWeight
hyphenateAcrossColumns
hyphenateAfterFirst
hyphenateBeforeLast
hyphenateCapitalizedWords
hyphenateLadderLimit
hyphenateLastWord
hyphenateWordsLongerThan
hyphenation
hyphenationZone
id
ignoreEdgeAlignment
imported
index
jidori
justification
kashidas
keepAllLinesTogether
keepFirstLines
keepLastLines
keepLinesTogether
keepRuleAboveInFrame
keepWithNext
keepWithPrevious
kentenAlignment
kentenCharacterSet
kentenCustomCharacter
kentenFillColor
kentenFont
kentenFontSize
kentenFontStyle
kentenKind
kentenOverprintFill
kentenOverprintStroke
kentenPlacement
kentenPosition
kentenStrokeColor
kentenStrokeTint
kentenTint
kentenWeight
kentenXScale
kentenYScale
kerningMethod
keyboardDirection
kinsokuHangType
kinsokuSet
kinsokuType
label
lastLineIndent
leading
leadingAki
leadingModel
leftIndent
ligatures
maximumGlyphScaling
maximumLetterSpacing
maximumWordSpacing
minimumGlyphScaling
minimumLetterSpacing
minimumWordSpacing
miterLimit
mojikumi
name
nextStyle
noBreak
numberingAlignment
numberingApplyRestartPolicy
numberingCharacterStyle
numberingContinue
numberingExpression
numberingFormat
numberingLevel
numberingRestartPolicies
numberingStartAt
objectReference
overprintFill
overprintStroke
paragraphDirection
paragraphGyoudori
paragraphJustification
parent
pointSize
position
positionalForm
previewColor
rensuuji
rightIndent
rotateSingleByteCharacters
rubyAlignment
rubyAutoAlign
rubyAutoScaling
rubyAutoTcyAutoScale
rubyAutoTcyDigits
rubyAutoTcyIncludeRoman
rubyFill
rubyFont
rubyFontSize
rubyFontStyle
rubyOpenTypePro
rubyOverhang
rubyOverprintFill
rubyOverprintStroke
rubyParentOverhangAmount
rubyParentScalingPercent
rubyParentSpacing
rubyPosition
rubyStroke
rubyStrokeTint
rubyTint
rubyType
rubyWeight
rubyXOffset
rubyXScale
rubyYOffset
rubyYScale
ruleAbove
ruleAboveColor
ruleAboveGapColor
ruleAboveGapOverprint
ruleAboveGapTint
ruleAboveLeftIndent
ruleAboveLineWeight
ruleAboveOffset
ruleAboveOverprint
ruleAboveRightIndent
ruleAboveTint
ruleAboveType
ruleAboveWidth
ruleBelow
ruleBelowColor
ruleBelowGapColor
ruleBelowGapOverprint
ruleBelowGapTint
ruleBelowLeftIndent
ruleBelowLineWeight
ruleBelowOffset
ruleBelowOverprint
ruleBelowRightIndent
ruleBelowTint
ruleBelowType
ruleBelowWidth
scaleAffectsLineHeight
shataiAdjustRotation
shataiAdjustTsume
shataiDegreeAngle
shataiMagnification
singleWordJustification
skew
spaceAfter
spaceBefore
spanColumnMinSpaceAfter
spanColumnMinSpaceBefore
spanColumnType
spanSplitColumnCount
splitColumnInsideGutter
splitColumnOutsideGutter
startParagraph
strikeThroughColor
strikeThroughGapColor
strikeThroughGapOverprint
strikeThroughGapTint
strikeThroughOffset
strikeThroughOverprint
strikeThroughTint
strikeThroughType
strikeThroughWeight
strikeThru
strokeAlignment
strokeColor
strokeTint
strokeWeight
tabList
tatechuyoko
tatechuyokoXOffset
tatechuyokoYOffset
tracking
trailingAki
treatIdeographicSpaceAsSpace
tsume
underline
underlineColor

Re: [MacRuby-devel] Scripting Bridge

2011-11-01 Thread Matt Aimonetti
Yes, I also saw these warnings (not errors). The header file and the
bridgesupport look good here on Lion.
I did some more tests and here is what I got:

I was able to package the document with the following script:

framework 'Foundation'
framework 'ScriptingBridge'
load_bridge_support_file 'inDesign.bridgesupport'
app = SBApplication.applicationWithBundleIdentifier('com.adobe.indesign')
doc = app.activeDocument
doc.packageTo(/Users/mattetti/tmp/testPackage, copyingFonts:true,
copyingLinkedGraphics:true, copyingProfiles:true, updatingGraphics:true,
includingHiddenLayers:true, ignorePreflightErrors:true,
creatingReport:true, versionComments:this is a test, forceSave:true)

# To generate a IDML (that seems to crash indesign after it's done)
#app.generateIDMLSchemaTo(/Users/mattetti/tmp/idmlPackage,
packageFormat:false)

# I tried the following without success, probably because I don't know how
the API works and how the export preset should be set :p
page = doc.pages.first
app.rasterizeDocumentPageDocument(doc, index:0, width:1024, height:768,
to:/Users/mattetti/tmp/page0.jpg, params:{}, cropBox: 0.2)
page.asynchronousExportFileFormat(tagged text/PDF,
to:/Users/mattetti/tmp/page1.pdf, showingOptions: false, using:
app.PDFExportPresets.first, versionComments: test, forceSave: true)
page.exportFormat(tagged text/PDF, to:/Users/mattetti/tmp/page2.pdf,
showingOptions: false, using: app.PDFExportPresets.first, versionComments:
test, forceSave: true)

- Matt



On Tue, Nov 1, 2011 at 4:50 PM, Spencer Rose dspenc...@gmail.com wrote:

 Did you get a bunch of errors like this:

 sdp: warning: skipping redeclared enumeration inDesignOTpf
 sdp: warning: skipping redeclared enumeration inDesignJrua

 when making your header?   I am getting errors when making the
 header file, and I am sure that is the reason for errors when making
 the brigesupport file.  I will do more research, just wondering.

 ___
 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


Re: [MacRuby-devel] Scripting Bridge

2011-10-31 Thread Matt Aimonetti
Hey in this post
http://merbist.com/2010/01/17/controlling-itunes-with-macruby/  I'm
explaining how to do that with iTunes.
I haven't tried scripting InDesign but the same concept/approach should
apply.
I have InDesign CS5.5 installed on my machine, if you share some code with
you, I might be able to help you debug your issue.

- Matt


On Mon, Oct 31, 2011 at 2:59 PM, Spencer Rose dspenc...@gmail.com wrote:

 Hey everyone, any help would be incredible.

 I am consolidating a workflow with scripts into an actual desktop
 application.

 When a search down to base leaf node such as AppliedFont from a
 paragraph
 style in InDesign, all I get is a SBObject.

 I need the name of the font.

 I am struggling to figure out how to introspect that object.

 Tried casting it, to inspect as a Cocoa object.

 Did not go well.

 Anyways, any ideas on how to get the property names and not these
 SBObjects would be helpful.

 ___
 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


Re: [MacRuby-devel] brace yourselves, 0.11 is coming!

2011-10-25 Thread Matt Aimonetti
Only the original author and Apple employees can consult the radar database. 
Thanks for finding the rdr.

- Matt

Sent from my iPhone

On Oct 25, 2011, at 4:00, Colin McPhail mcphail_co...@hotmail.com wrote:

 According to this thread  
 http://stackoverflow.com/questions/7010233/gc-operation-on-unregistered-thread
  it has been filed as bug 9928419 .  I would have checked this out but I 
 can't figure out how to search all bug reports, not just ones I may have 
 reported.  Do I have to be a paid-up member of the Apple developer program to 
 be able to do that?
 --CMcP
 
 On 24 Oct 2011, at 20:08, Matt Aimonetti wrote:
 
 fair... I didn't file a radar, my bad. Did anyone else file a rdr?
 
 - Matt
 
 On Mon, Oct 24, 2011 at 11:43 AM, Jordan K. Hubbard j...@apple.com wrote:
 Radar #? :)
 
 On Oct 23, 2011, at 7:51 PM, Matt Aimonetti wrote:
 
 This message is a warning probably due to a small regression in Lion
 
 
 ___
 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
 
 ___
 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


Re: [MacRuby-devel] brace yourselves, 0.11 is coming!

2011-10-24 Thread Matt Aimonetti
fair... I didn't file a radar, my bad. Did anyone else file a rdr?

- Matt

On Mon, Oct 24, 2011 at 11:43 AM, Jordan K. Hubbard j...@apple.com wrote:

 Radar #? :)

 On Oct 23, 2011, at 7:51 PM, Matt Aimonetti wrote:

 This message is a warning probably due to a small regression in Lion



 ___
 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


Re: [MacRuby-devel] MacRuby app store guide

2011-10-24 Thread Matt Aimonetti
Rob, have you tried to use codesign as Eliott suggested in his blog post?

- Matt

On Mon, Oct 24, 2011 at 4:19 AM, rob ista rob.i...@me.com wrote:

 I don't know if this is a xcode bug .. I'm still developing on SL with
 xcode 4.0.2 because Lion and 4.2 gives me too much trouble and crashes. The
 automated response in the review process about the codesigning  is quite new
 and I have not seen it before (on the same delvelopment machine with the
 same tools) until recently when submitting a new macruby app. It complaints
 about the macruby framework itself, all .rbo and .dylib files from the
 framework and all app-specific .rbo files from the deployment phase of the
 app. It worries me a bit because it seems to shut the door to macruby apps
 in the near future. It 's now only :


 Dear Developer,

 We have discovered one or more issues with your recent binary submission
 for SMSReCall. Your app has proceeded to review, but the following issues
 should be corrected in your next submission:

 *Invalid Signature* - the nested app bundle Ruby
 (SMSReCall.app/Contents/Frameworks/MacRuby.framework) is not signed, the
 signature is invalid, or it is not signed with an Apple submission
 certificate. Refer to the Code Signing and Application Sandboxing 
 Guidehttp://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/AboutCS/AboutCS.htmlfor
  more information.

 *Invalid Signature* - the executable
 SMSReCall.app/Contents/Frameworks/MacRuby.framework/Versions/Current/usr/lib/libmacruby.1.9.2dylib
 is not signed, the signature is invalid, or it is not signed with an Apple
 submission certificate. Refer to the Code Signing and Application
 Sandboxing 
 Guidehttp://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/AboutCS/AboutCS.htmlfor
  more information.

 *Invalid Signature* - the executable etc etc etc
 Rob

 - - - -

 Thanks for sharing Eliott, that seems to be a bug with Xcode and it should
 be affecting all 3rd party frameworks, not just MacRuby.
 Quite strange, but thanks for showing how you worked around the signing
 problem.

 - Matt

 On Wed, Oct 19, 2011 at 11:23 AM, Elliot Temple curi at 
 curi.ushttp://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
 wrote:

 * http://curi.us/1538-macruby-and-the-mac-app-store
 **
 ** Got my game in the app store. Hope these notes help others get things
 ** working too.
 **
 ** -- Elliot Temple
 ** http://beginningofinfinity.com/
 **
 **
 **
 **
 ** ___
 ** MacRuby-devel mailing list
 *
 * MacRuby-devel at 
 lists.macosforge.orghttp://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
 ** 
 http://lists.macosforge.org/mailman/listinfo.cgi/macruby-develhttp://listsmacosforge.org/mailman/listinfo.cgi/macruby-devel
 **
 *

 ___
 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


Re: [MacRuby-devel] brace yourselves, 0.11 is coming!

2011-10-23 Thread Matt Aimonetti
Seems to be working great for me.

- Matt

On Sat, Oct 22, 2011 at 7:40 AM, Steve Clarke st...@sclarkes.me.uk wrote:

 Hi,

 I installed 0.11 using the installer pkg.  The install seemed to work fine.

 However,  when I run my app I get a message that wasn't there with 0.10 or
 with an earlier build of 0.11.

 Here's the console message:

 *Membership(4727,0x1043bf000) malloc: *** auto malloc[4727]: error: GC
 operation on unregistered thread. Thread registered implicitly. Break on
 auto_zone_thread_registration_error() to debug.*
 *
 *

 I see that there's a closed won't fix ticket for a similar problem, so I
 guess this is not related to the installer.  I'll just live with it unless
 it's of interest to anyone else.

 Steve


 ___
 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


Re: [MacRuby-devel] brace yourselves, 0.11 is coming!

2011-10-23 Thread Matt Aimonetti
This message is a warning probably due to a small regression in Lion. It
won't prevent the app from working and I'm sure will eventually fix that.
Thanks for reporting your findings (and for reading my book ;) )

- Matt

On Sun, Oct 23, 2011 at 7:47 PM, Robert Love rblove_li...@comcast.netwrote:

 I did the first example from Matt's book using 0.11 today and I get very
 similar results.

 ./hello_world
 Hello World
 macruby(11481,0x10cf81000) malloc: *** auto malloc[11481]: error: GC
 operation on unregistered thread. Thread registered implicitly. Break on
 auto_zone_thread_registration_error() to debug.
 Bye!

 The program runs great, it just always spits out this message.




 On Oct 23, 2011, at 8:27 PM, Matt Aimonetti wrote:

 Seems to be working great for me.

 - Matt

 On Sat, Oct 22, 2011 at 7:40 AM, Steve Clarke st...@sclarkes.me.ukwrote:

 Hi,

 I installed 0.11 using the installer pkg.  The install seemed to work
 fine.

 However,  when I run my app I get a message that wasn't there with 0.10 or
 with an earlier build of 0.11.

 Here's the console message:

 *Membership(4727,0x1043bf000) malloc: *** auto malloc[4727]: error: GC
 operation on unregistered thread. Thread registered implicitly. Break on
 auto_zone_thread_registration_error() to debug.*
 *
 *

 I see that there's a closed won't fix ticket for a similar problem, so I
 guess this is not related to the installer.  I'll just live with it unless
 it's of interest to anyone else.

 Steve


 ___
 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



 ___
 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


Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-20 Thread Matt Aimonetti
Hmm thanks, I didn't realize we had a google groups mirror. I'm wondering if
we shouldn't just move there since it's much easier to use and maintain than
macosforge.
Thoughts, ideas, suggestions?

- Matt

On Thu, Oct 20, 2011 at 12:13 AM, Sven A. Schmidt s...@abstracture.dewrote:

 I found that searching the google groups mirror was much easier and this
 might be the thread you're referring to:

 https://groups.google.com/d/topic/macruby/ceyNNqComMc/discussion

 -sas

 On Oct 19, 2011, at 22:43, Jordan K. Hubbard wrote:

 
  On Oct 19, 2011, at 11:38 AM, Terry Moore wrote:
 
  Yes. But he does state it is a read only not modified array. My
 understanding is. 'Array' is an NSMutableArray, I was merely suggesting
 using freeze to throw that exception just in case there maybe some code
 attempting to write/modify.
 
  Mutex is the way to go but it also has an overhead.
 
  Didn't somebody (Ernie?) already post a set of mix-ins for the mutable
 object classes that used a per-object GCD queue to serialize operations
 against the object?  If the mail archives were easier to search, I'd pull it
 up, but it isn't and I'm too lazy. :)
 
  - Jordan
 
  ___
  MacRuby-devel mailing list
  MacRuby-devel@lists.macosforge.org
  http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

 --

 Dr. Sven A. Schmidt
 abstracture GmbH  Co. KG
 Wilhelm-Theodor-Römheld-Straße 28
 55130 Mainz

 Fon  +49 6131 696 29 0
 Fax  +49 6131 696 29 29
 Mail s...@abstracture.de

 Amtsgericht Mainz HRA 40625
 USt-IdNr.: DE258454694

 Persönlich haftender Gesellschafter:
 abstracture IT-Beratungs- und Beteiligungsgesellschaft mbH, Sitz Mainz,
 Amtsgericht Mainz HRB 41357

 Geschäftsführer: Dr. U. Koch, T. Meyer, A. Misok, Dr. S.A. Schmidt, Dr. V.
 Schönharting


 ___
 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


Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-19 Thread Matt Aimonetti
The proper way to protect mutable objects is to use a mutex: 
http://www.ruby-doc.org/core-1.9.2/Mutex.html

- Matt

Sent from my iPhone

On Oct 19, 2011, at 8:06, Chuck Remes cremes.devl...@mac.com wrote:

 
 On Oct 19, 2011, at 12:41 AM, Terry Moore wrote:
 
 If you're not wring/changing the array no problems. But to be safe use 
 Object#freeze...
 
 Terry Moore
 
 On 19/10/2011, at 6:26 PM, Michael Johnston lastobe...@mac.com wrote:
 
 Note, in my example I can also guarantee that none of the elements in b are 
 going to be changed (for example, an array of strings)
 
 Object#freeze is a terrible method. Supporting it requires an extra check 
 (#frozen?) in every method that tries to modify an object. This is why Ruby 
 is slow (certainly not the only reason, but decisions like this are 
 everywhere). 
 
 :)
 
 Using #freeze won't save you but it will throw a RuntimeException if you try 
 to modify a frozen object. So it's really only good for pointing out that you 
 have a bug when you attempt to modify your immutable array.
 
 cr
 
 
 ___
 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


Re: [MacRuby-devel] Xcode 4.2/IB and MacRuby: Works!

2011-10-19 Thread Matt Aimonetti
Sorry we didn't make more noise about it, but after opening a bug report on
Apple's site and bugging a few people there, they fixed the Xcode bug.
The fix has been in all the recent Xcode beta but we forgot to announce it
when 4.2 was publicly released.

- Matt

On Wed, Oct 19, 2011 at 2:21 PM, steve ross cwdi...@gmail.com wrote:

 In case nobody was watching…

 So, today I downloaded Xcode 4.2, hoping IB would recognize outlets and
 actions in MacRuby classes. I also downloaded the newest version of MacRuby
 (0.12) from the nightly builds.

 Now, my outlets and actions (as defined in my Ruby classes) are recognized
 in IB. Hurrah!!!
 ___
 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


Re: [MacRuby-devel] thread-safety and collections in macruby

2011-10-19 Thread Matt Aimonetti
I believe someone (Ernie or someone else) did indeed extract some of the
dispatch gem's mixins.

- Matt

On Wed, Oct 19, 2011 at 1:43 PM, Jordan K. Hubbard j...@apple.com wrote:


 On Oct 19, 2011, at 11:38 AM, Terry Moore wrote:

 Yes. But he does state it is a read only not modified array. My
 understanding is. 'Array' is an NSMutableArray, I was merely suggesting
 using freeze to throw that exception just in case there maybe some code
 attempting to write/modify.

 Mutex is the way to go but it also has an overhead.


 Didn't somebody (Ernie?) already post a set of mix-ins for the mutable
 object classes that used a per-object GCD queue to serialize operations
 against the object?  If the mail archives were easier to search, I'd pull it
 up, but it isn't and I'm too lazy. :)

 - Jordan


 ___
 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


Re: [MacRuby-devel] MacRuby app store guide

2011-10-19 Thread Matt Aimonetti
Thanks for sharing Eliott, that seems to be a bug with Xcode and it should
be affecting all 3rd party frameworks, not just MacRuby.
Quite strange, but thanks for showing how you worked around the signing
problem.

- Matt

On Wed, Oct 19, 2011 at 11:23 AM, Elliot Temple c...@curi.us wrote:

 http://curi.us/1538-macruby-and-the-mac-app-store

 Got my game in the app store. Hope these notes help others get things
 working too.

 -- Elliot Temple
 http://beginningofinfinity.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


Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Matt Aimonetti
Python uses a reference counting GC, MacRuby could, in theory,
implement ARC under the cover. It would however make C extensions
really really hard to support.

- Matt

On Sun, Oct 16, 2011 at 11:11 PM, Igor Evsukov igor.evsu...@gmail.com wrote:
 Hi Henry,

 And it's impossible to make Ruby to use ARC.

 Why?

 For memory management Objective-C uses a paradigm called reference
 counting. The idea is very simple – when You need an object – You increase
 it reference count, when You no longer need it – You should decrease it. For
 example

 NSString *name = @Henry;
 //when [[... alloc] init...] called (new object get created) – reference
 count of object is set to 1.
 //who create's object is responsible to delete it
 NSString *greeting = [[NSString alloc] initWithFormat:@Hello %@,name];
 //assume that greetings in an instance of NSMutableArray
 [greetings addObject:greeting];
 //we no longer need a greeting variable
 [greeting release];

 Everything is ok with this model, but You should manually track circular
 references.
 ARC is just a smart preprocessor that knows Cocoa memory conventions and
 add's retain/release/autorelease calls to Your source code. And it can't
 figure out what to with circular references.
 In Ruby we have garbage collector which is acts in whole different way –
 instead of modifying source code it track all created objects and delete
 one's that are no longer accessible from Your program.
 So, basically, ARC and GC are two conceptually different things which are
 even not replaceable by each other(circular references).
 I encourage You to watch a BostonRB talk
 ( http://bostonrb.org/presentations/macruby-what-is-it-and-why-should-i-care-part-1 ) by Joshua
 Ballanco (one of the MacRuby developers). In his talk he sad that GC isn't a
 major issue with bringing MacRuby to iOS.
 On 17 окт. 2011, at 08:43, Henry Maddocks wrote:

 On 16/10/2011, at 9:07 PM, Igor Evsukov wrote:

 And it's impossible to make Ruby to use ARC.

 Why?

 Henry

 ___
 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


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Advice for Total Tyro

2011-10-17 Thread Matt Aimonetti
 I have to admit that MacRuby is getting better everyday but MacRuby
is still far from complete.

Could you elaborate on that please?

Thanks,

- Matt

On Mon, Oct 17, 2011 at 12:02 PM, David Frantz websterindus...@mac.com wrote:
 Here is my perspective, limited as it is.
 1.
 You can not get by without learning Objective C!
 2.
 Objective C really isn't that bad!    As a minor upgrade to C it is fast to
 pick up, the bulk of your learning will go to the various APIs.   This if
 you already know a little bit of C.
 3.
 If you want to write apps right now Objective C is the best way to go.   Now
 I know that many will object to that statement and I have to admit that
 MacRuby is getting better everyday but MacRuby is still far from complete.
 Well maybe not far but I think you should grasp what I mean.
 4.
 IOS and MacRuby are currently mutually exclusive.   This is actually the
 biggest bummer of any point I have listed so far.   If you are interested in
 iOS devices there is no good reason to even bother with MacRuby.
 5.
 Now things are not all negative here.   For one all platforms need a well
 integrated scripting language.   MacRuby certainly fills that role but it
 isn't Python.  Now we don't want to argue the finer points of scripting
 languages but I find I use Python more than MacRuby because of prior
 experience and sometimes a better fit for the problem.   So what I'm saying
 is that MacRuby is sorely needed as a way to build MacOS type apps.
 6.
 MacRuby's status at Apple is unclear.   This can be somewhat frustrating
 because I'd rather that Apple officially support MacRuby.  Apple does seem
 to be extremely focused on the C dialects only.   Maybe my impression here
 is wrong, but I'd rather see MacRuby shipped by Apple as part of their
 developer tools set officially supported.    MacRuby should be as important
 to Apple as Visual BASIC is to MS.


 In the end it is up to you.   MacRuby is a very interesting project and is
 why I follow this forum.   For the time being though I do not use MacRuby.
 The lack of iOS support is one big issue.    The fact that you have to learn
 Objective C and the APIs anyways is another.   I'm also pressed for time and
 know at least a little C++ so Objective C is the less painful approach.
 Also consider this, I made the decision to stay with the C languages a very
 long time ago.   MacRuby is far closer to complete now so the Alpha/Beta
 nature is slowly going away.

 Sent from Dave's iPad!
 On Oct 15, 2011, at 8:12 PM, Bryan Harrison br...@bryanharrison.com wrote:

 Older  Wisers:
 Having done enough web development, network design, and systems
 administration for one lifetime, I've decided this winter is a fine time to
 leave all that behind and become an applications developer.  Wanting to make
 consumer products and having no interest in Windows, most of the territory
 ahead is obvious.
 But still, I'd appreciate some advice from those who're already there,
 particularly with regard to MacRuby.
 Specifically, has development for OS X and iOS reached the point where it
 would be reasonable to pursue Ruby before or even instead of Objective-C?
  I've modest C background, am OOP-familiar, am not versed in Cocoa, and am
 only marginally familiar with Ruby.  Obviously I'd like to get up to speed
 as soon as possible, but I'm not under any pressure and expecting this will
 be the next 5-10 years of my life, would rather be good than quick.
 Objective-C is not without a certain homely charm, but Ruby is obviously the
 more modern language.  So…

 Does Xcode treat Ruby as family, or is it a stepchild toiling in the ashes?
  Are there other tools I'll need?

 What's Apple's attitude toward Ruby applications?

 Can Ruby take advantage of the (finally!) modern memory management features
 released with iOS 5?

 Will I end up have having learn Objective-C regardless?

 Basically, If you were me, what would you do, and what order might you do
 it in?
 Thanks,
 Bryan

 ___
 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


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby and ARC was: Advice for Total Tyro

2011-10-17 Thread Matt Aimonetti
See my earlier reply, basically, you are right, it is technically
possible to change the way MacRuby works to use an automatic reference
counting approach.
But it's far from being trivial.

- Matt


On Mon, Oct 17, 2011 at 1:28 PM, Henry Maddocks
henry.maddo...@gmail.com wrote:

 On 17/10/2011, at 7:11 PM, Igor Evsukov wrote:

 Hi Henry,

 And it's impossible to make Ruby to use ARC.

 Why?
 For memory management Objective-C uses a paradigm called reference 
 counting.

 ...

 In Ruby we have garbage collector which is acts in whole different way

 I understand all this. But I'm not asking about _Ruby_, I'm asking about the 
 MacRuby OBJ-C implementation of the Ruby language.

 So, basically, ARC and GC are two conceptually different things which are 
 even not replaceable by each other(circular references).

 This doesn't explain why MacRuby can't be implemented with ARC rather than 
 relying on the OBJ-C 2 garbage collector.

 Henry

 ___
 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


Re: [MacRuby-devel] Advice for Total Tyro

2011-10-17 Thread Matt Aimonetti
 And given that Apple doesn't hesitate to squelch tech when it feels like it, 
 I'm clear that committing to any technology it hasn't blessed is at your 
 own risk.

While this is partly true, I don't see what Apple could realistically
do to hurt MacRuby developers (and why they would do that).
Actually, the fact that MacRuby doesn't ship as a public framework in
Lion is a blessing in disguise since developers don't have to wait for
Apple's blessing to use the latest version of the framework.

So, the only valid argument I personally agree with is the current
lack of iOS support, but even that, writing OS X and iOS apps is quite
different and I don't think many people only use one code base for
both platforms.

- Matt


On Mon, Oct 17, 2011 at 2:14 PM, Bryan Harrison br...@bryanharrison.com wrote:
 Those are all interesting and useful points and I appreciate everyone's 
 willing to respond at length.  As always, I wonder why extraordinary 
 generosity isn't part of the geek stereotype.

 Since I'm interested in developing for both OS X and iOS, no Ruby on iOS is 
 the clincher.  And given that Apple doesn't hesitate to squelch tech when it 
 feels like it, I'm clear that committing to any technology it hasn't blessed 
 is at your own risk.

 Still, MacRuby is very promising.  I'll keep an eye out.

 Thanks again,
 Bryan
 ___
 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


[MacRuby-devel] MacRuby O'Reilly book final e-version finally available

2011-10-17 Thread Matt Aimonetti
I just noticed that what looks like the final pdf/epub/mobi version of
MacRuby book is now available to people who already bought the book or for
new customers.
If you already bought the book, get your update from:
https://members.oreilly.com/account/emedia/index

Otherwise the book is for sale on O'Reilly's site:
http://shop.oreilly.com/product/063692723.do
and Amazon:
http://www.amazon.com/gp/product/1449380379/ref=as_li_ss_tl?ie=UTF8tag=merbist-20linkCode=as2camp=217145creative=399369creativeASIN=1449380379

The print version will probably be available very very soon now.
Sorry for the wait and please, try to leave an Amazon review.

Thanks,

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


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

2011-10-14 Thread Matt Aimonetti
Great job guys!

- Matt

On Fri, Oct 14, 2011 at 1:03 AM, Eloy Duran e...@dekleineprins.me wrote:

 Great work, Mark!

 On Fri, Oct 14, 2011 at 7:08 AM, Robert Lowe r...@iblargz.com wrote:
  Mark,
 
  You're freaking amazing! (Not only for your commits to macruby) but for
 breathing life into hotcocoa. Damn.
 
  Appspec is sinisterly awesome in concept.
 
  Love it,
   - Rob
 
  PS: A Torontonian too, eh? Let me buy you a beer sometime!
  ___
  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

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] is there a sane way to use/create XPC services via macruby?

2011-10-11 Thread Matt Aimonetti
MacRuby fully supports sandboxing:
http://ofps.oreilly.com/titles/9781449380373/_one_step_deeper.html#_sandboxing

I don't have any experience with XPC:
http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingXPCServices.html
but in theory we should totally support that. A nice wrapper would be
great
tho.

I haven't read anything about XPC services being a requirement, but devs can
and probably should sandbox their MacRuby apps.

- Matt


On Tue, Oct 11, 2011 at 12:29 AM, Takao Kouji ko...@takao7.net wrote:

 Does Anyone know any idea below?

 - on IRC #macruby channel -
 03:58 Aphelion: is there a sane way to use/create XPC services via macruby?

 11:10 takaokouji: Aphelion: Sorry, I don't know XPC. What is XPC? XML-RPC?

 13:08 Aphelion: takaokouji: IPC/sandboxing technology that apple is
 requiring all mac app store applications to make use of as of the first of
 next month to get new apps or updates approved
 13:10 Aphelion: takaokouji: so if you need to talk to the network, you
 create a service with permission to do so and the main application remains
 completely sandboxed, only communicating with the service. or if you need to
 interact with another app via apple events, you make a service that does
 this and communicate with that. it's to decrease the potential surface area
 of any given vulnerability.
 13:11 Aphelion: takaokouji: and, well... there's no choice in the matter.
 nothing will make it into the app store without using app sandboxing at
 least, which realistically means making use of xpc services, as of the first
 of next month. period.
 -

 ---
 TAKAO Kouji ko...@takao7.net
 blog: http://d.hatena.ne.jp/kouji0625/
 twitter: takaokouji / projects: ruby, s7-seven

 ___
 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


Re: [MacRuby-devel] Progress towards 1.0?

2011-10-11 Thread Matt Aimonetti
Hi Dave,

The project is more stable than ever and we are planning a 0.11
release for really soon which should be hopefully followed by a 1.0
release.
Laurent recently became a dad and he's currently in parental leave
which explains why he didn't contribute too much code recently.
MacRuby is now really stable and we want to keep it that way and release 1.0
We have started talking about what the plan is for post 1.0, but you
need to realize that many people now really on MacRuby and books are
being written so stability is key.

I think it would be great to see more open source projects around
MacRuby, maybe some people are willing to pick up the work with
HotCocoa or contribute new libraries. A better GCD might also be
interesting to have.

But maybe, instead I should ask you what you are expecting or hoping for?

Thanks,

- Matt

Sent from my iPad

On Oct 11, 2011, at 1:38 PM, Dave Baldwin dave.bald...@dsl.pipex.com wrote:

 Hi,

 I have been away from MacRuby dev for about 6 months and I am looking to 
 start again and I was wondering if it is still a viable development platform 
 as development seems to have stalled.  It has been a long time since the last 
 release and looking back through the list archives I see Laurent seems to 
 have disappeared and the main regular contributor to the git repository is 
 watson1978.

 None of this is a criticism as I know how open source project wax and wane 
 but I still live in hope MacRuby will become the main way to develop Cocoa 
 apps in the future especially as it is being accepted into the mac app store.

 Dave.


 ___
 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


Re: [MacRuby-devel] ASIHTTPRequest examples

2011-10-11 Thread Matt Aimonetti
I wasn't pleased with the APIs provided by ASIHTTPRequest so I wrote my own 
async/sync wrapper: https://github.com/mattetti/macruby-httpwrapper

Feel free to use/fork/fix/improve/abuse.

- Matt

Sent from my iPhone

On Oct 11, 2011, at 17:19, Alex Heaton a...@heaton.me wrote:

 Hi everyone, 
 
 I was wondering if there any example apps that use ASIHTTPRequest that I 
 might be able to have a look at? 
 ___
 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


Re: [MacRuby-devel] macruby NSTask problem

2011-10-09 Thread Matt Aimonetti
I haven't followed the whole thread, but  be aware that NSNotificationCenter 
uses weak references. I'm not sure that's the problem you are encountering 
since I was too lazy to read your other msgs (sorry), but hopefully that 
comment might help you or others.

- Matt

Sent from my iPhone

On Oct 9, 2011, at 0:58, Alex Greif a...@greifdesign.net wrote:

 here an update:
 the problem seems to be with the notifier, because if I use the following
 code without the NSNotificationCenter, then, everything works fine, like
 the following sample code:
 
task = NSTask.alloc.init
task.currentDirectoryPath = /
task.launchPath = /bin/bash
task.arguments = [some script]
 
stdout_pipe = NSPipe.pipe
task.setStandardOutput stdout_pipe
stdout_file_handle = stdout_pipe.fileHandleForReading
 
task.launch
task.waitUntilExit
exit_status = task.terminationStatus
 
stdout_data = stdout_file_handle.readDataToEndOfFile
stdout = NSString.alloc.initWithData(stdout_data,
 encoding:NSUTF8StringEncoding)
 
 
 Does anybody have such bad experiences with the NSNotificationCenter?
 
 ALex.
 
 
 
 Hi
 
 I tried the subprocess sample with the AsyncHandler from
 http://ofps.oreilly.com/titles/9781449380373/_foundation.html
 
 and found the following problem:
 if I execute the code many times (I tried 20 times) in my terminal with
 $ macruby sample.rb
 then 2-3 times it does not print any output. In this 10% the data_ready:
 method of the AsyncHandler is not called.
 
 Is this a macruby problem or an NSTask problem?
 
 BTW using NSFileHandleReadToEndOfFileCompletionNotification instead of
 NSFileHandleReadCompletionNotification makes it even worse, in this case
 data_ready: is never called.
 
 I use the 2011.09.27 macruby 0.11 snapshot
 and mac os x 10.6.8
 
 Alex.
 
 
 ___
 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
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


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

2011-10-07 Thread Matt Aimonetti
Time for a 0.11 release! ;)

- Matt

On Fri, Oct 7, 2011 at 9:24 PM, Mark Rada mr...@marketcircle.com wrote:

 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,
 Mark

 On 2011-10-07, at 4:08 PM, Ernest N. Prabhakar, Ph.D. wrote:

  Hi all,
 
  I'm trying to use MacRuby with rspec, but it ain't working.  I thought I
 read somewhere that it *should*.  Is anyone else having problems, or is it
 an artifact of using rvm?  Should I file a bug?
 
  Thanks,
  -- Ernie P.
 
  selfserve:frame prabhaka$ rvm current
  macruby-0.10
 
  selfserve:tmp prabhaka$ cat  foo_spec.rspec
  describe foo do
it {1.should == 1}
  end
 
  selfserve:tmp prabhaka$ rspec foo_spec.rspec
 
 /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/world.rb:14:in
 `empty_without_conditional_filters?': undefined method `empty?' for
 #Enumerator:0x40081dfe0 (NoMethodError)
from
 /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/world.rb:131:in
 `announce_exclusion_filter:'
from
 /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/world.rb:103:in
 `announce_filters'
from
 /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/command_line.rb:19:in
 `run:'
from
 /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:80:in
 `run_in_process:'
from
 /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:69:in
 `run:'
from
 /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:11:in
 `block'
 
  selfserve:tmp prabhaka$ gem list --local
 
  *** LOCAL GEMS ***
 
  bundler (1.0.12)
  diff-lcs (1.1.2)
  git (1.2.5)
  jeweler (1.6.4)
  rake (0.9.2)
  rspec (2.6.0)
  rspec-core (2.6.4)
  rspec-expectations (2.6.0)
  rspec-mocks (2.6.0)
 
  ___
  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

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Quote for my MacRuby Book

2011-10-06 Thread Matt Aimonetti
Hey guys,

My editor (O'Reilly) is working on the last few things before sending my
book to print. It should go out in a few days and they are currently on the
cover and other small details.
They asked me for quotes from people who read the book and well.. I don't
have any at the moment :(

If you've read my book (pdf/ebook or online), please consider sending me a
quote with your name and a quick description such as your title, company or
whatever you think will help a reader value your quote.

Thanks in advance.

- Matt
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] GPL and the App Store

2011-10-06 Thread Matt Aimonetti
I'm not a lawyer so I can't answer your question on any legal basis, but the
goal of the project isn't to corner anyone in a given license.
If you were to find any issues, I am sure the entire team would do
everything in its power to help.

- Matt

On Fri, Oct 7, 2011 at 1:17 AM, Mike Boone m...@boonedocks.net wrote:

 Hi all,

 I would like to build a MacRuby app to sell on the Mac App Store.
 However, I am concerned about the GPL license on some of the MacRuby
 source code, given what happened to VLC on the iOS App Store.

 I have googled around and the only discussion I could find on this
 topic was a brief page at Stack Exchange, which did not have a
 conclusive answer.

 http://stackoverflow.com/questions/7028270/license-of-macruby

 Reading LEGAL in the MacRuby distribution is confusing. It would seem
 that all the listed licenses apply if these files are all compiled
 into MacRuby. One of the files is GPL, therefore the whole app would
 have to be GPL, correct?

 I know that others are currently selling MacRuby apps in the Mac App
 Store, but I would like to know more about this issue before I spend
 time building my app in MacRuby.

 Many thanks,
 Mike Boone.
 http://boonedocks.net/mike/
 ___
 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


Re: [MacRuby-devel] Quote for my MacRuby Book

2011-10-06 Thread Matt Aimonetti
Sorry for the wait Robert, I was waiting for Lion to be released and the new
XCode.
MacRuby ships with Lion but as a private framework. And that means that it
probably won't ship as a public framework anytime soon.
That said, it's not a big deal. It allows us to embed the framework with our
apps and to not be constrained by the OS releases. It does add a bit of
overhead but really not much and we should be able to optimize that in the
near future.

- Matt


On Fri, Oct 7, 2011 at 1:38 AM, Robert Love rblove_li...@comcast.netwrote:

 Ok, the book is coming to fruition.  I've had one ordered for a while.

 Not to be too pushy asking but is Apple getting close to making it part of
 the released OS?  OK, employees can't comment, NDAs etc but hope that day
 arrives soon.


 On Oct 6, 2011, at 8:00 PM, Matt Aimonetti wrote:

  Hey guys,
 
  My editor (O'Reilly) is working on the last few things before sending my
 book to print. It should go out in a few days and they are currently on the
 cover and other small details.
  They asked me for quotes from people who read the book and well.. I don't
 have any at the moment :(
 
  If you've read my book (pdf/ebook or online), please consider sending me
 a quote with your name and a quick description such as your title, company
 or whatever you think will help a reader value your quote.
 
  Thanks in advance.
 
  - 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

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] MacRuby and Scripting Bridge

2011-10-01 Thread Matt Aimonetti
methods(true, true) means  show Ruby methods as well as Objective-C methods.

- Matt

On Fri, Sep 30, 2011 at 7:04 PM, Naughty Nimitz naughty.nim...@gmail.comwrote:

 Hi Greg,

 that doesn't work alas...
 but I googled your solution and found that app.methods(true,true) did work.

 No idea what the two parameters are for.

 Thx for the lead

 Nimitz



 2011/9/30 Gregory Clarke g...@intelligentassistance.com

 app.objc_methods should reveal the methods it's inherited thanks to
 Scripting Bridge.

 Greg

 On Sep 30, 2011, at 5:08 AM, Naughty Nimitz wrote:

 Hi all,

 As i am migrating from RubyCocoa (and the rb-appscript gem) to MacRuby I
 am charmed by Scripting Bridge: no gems required and supposedly easy to use.

 Now my problem is how to migrate some statements: take this one in
 RubyCocoa and appscript:
 *
 app(Adobe Indesign
 CS5).script_preferences.user_interaction_level.set(:never_interact)*


 to Scripting Bridge?
 *appurl = NSURL.fileURLWithPath(/Applications/Adobe Indesign CS5/Adobe
 InDesign CS5.app)
 app = SBApplication.applicationWithURL(appurl)*
 app.dosamething

 It wont accept app.scripting_preferences or app.scriptpreferences?

 Alas, app.methods does not reveal a lot of information apart from the
 default ruby methods.
 Any clues (blogs, ...) where i can find info are more than welcome!

 Thanks in advance


 --
 Nimitz


  ___
 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




 --
 This signature is patented.

 ___
 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


Re: [MacRuby-devel] programatic binding (undefined bind method on NSTextField) SOLVED

2011-09-28 Thread Matt Aimonetti
Thanks for the update.

- Matt

Sent from my iPhone

On Sep 28, 2011, at 4:54, Alex Greif a...@greifdesign.net wrote:

 In the macirb I forgot to import 'Cocoa'. ANd in my App it seems that I
 had a typo.
 
 it now works now.
 
 Thanks
 
 
 I even tried it on lion with the latest nightly build, and even there I
 get false for the respond_to?
 
 Do I have to install something else beside macruby?
 Or Why is the protocol not automatically added to the NSObject class?
 
 Thanks,
 Alex.
 
 Have you got the right signature? Looking at
 
 http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html
 
 I see only
 
  bind:toObject:withKeyPath:options:
 
 and on Lion with macruby_nightly-2011-09-23 I get:
 
 irb(main):014:0
 NSObject.alloc.init.respond_to?('bind:toObject:withKeyPath:options:')
 = true
 irb(main):015:0
 NSTextField.alloc.initWithFrame([1,2,3,4]).respond_to?('bind:toObject:withKeyPath:options:')
 = true
 
 Cheers,
 Sven
 
 The following code prints false twice
 So it seems that the protocol is not applied correctly.
 Is this a bug or do I need some other require/framework statements?
 BTW the result is the same if i use framework 'Cocoa'
  code -
 framework 'AppKit'
 
 puts NSObject.alloc.init.conformsToProtocol
 Protocol.protocolWithName('NSKeyValueBindingCreation')
 
 puts NSTextField.alloc.initWithFrame([1,2,3,4]).conformsToProtocol
 Protocol.protocolWithName('NSKeyValueBindingCreation')
 
 
 ___
 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
 
 
 
 
 
 ___
 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


Re: [MacRuby-devel] List configuration and Gmail spoofing paranoia

2011-09-19 Thread Matt Aimonetti
Eric, I have the same message when you email us ;)
I think that's due to the way the mailing list on macosforge is setup.

If you are worried that it isn't the real me emailing, I might consider
attaching a pic of myself holding today's newspaper ;)

Thanks for the report tho, we'll check with macosforge and if that's too
much of a problem, we might move to another mailing list provider (I'm not a
big fan of the archive browsing feature provided by macosforge).

- Matt

On Mon, Sep 19, 2011 at 5:24 PM, Eric Christopherson 
echristopher...@gmail.com wrote:

 Since Google implemented some new anti-spoofing measures in Gmail
 recently (a few months ago?), messages from certain people to this
 list show text like this in Gmail:

 This message may not have been sent by: mattaimone...@gmail.com
 Learn more  Report phishing

 Matt, I notified you of this when I first noticed it. Laurent, this
 warning also comes up on your messages.

 I wonder if there's something slightly wrong with the way the list is
 set up. I don't get these warnings on any other lists I'm on.
 ___
 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


Re: [MacRuby-devel] -twolevel_namespace issue?

2011-09-13 Thread Matt Aimonetti
That'd be great Aston.

Thanks,

- Matt

On Tue, Sep 13, 2011 at 2:59 PM, az...@gmx.net az...@gmx.net wrote:

 I think it would be easier to collaborate on a project like this if we had
 a good forum - where threads can be sticked, announcements be posted etc

 It's one of the things I miss from the PHP world, where there are lots of
 communities using forums very effectively. From support to collaboration, to
 just getting to know each other.

 I actually came to Ruby (Rails) so I could move away from forum-based sites
 (which I've been into for years) but I'd be willing to do one last one for
 Ruby if enough people wanted it - we could have separate categories for
 projects like MacRuby, Rails, etc, with their respective leaders having mod
 permissions to post announcements/stick threads etc (but the low level
 'spam' moderating etc would be left to me and my mod team.

 Does that interest anyone?

 Aston


 On 13 Sep 2011, at 21:37, Jeremy Hinegardner wrote:

  True, waiting on Laurent for this may be the wrong approach. I have done
  a fair bit of my own investigation, and do not know where to go next,
 hence
  posting here.
 
  In short, yes, Amalgalite uses and exposes more features of SQLite than
 are
  generally available from default builds, and even OSX's non-default
 build,
  hence embedding it in the ruby extension itself.
 
  To help, I would really like to understand the pros/cons of using flat
 vs.
  twolevel namespaces with respect to MacRuby and extensions.
 
  enjoy,
 
  -jeremy
 
  On Tue, Sep 13, 2011 at 12:11:06PM -0700, Jordan K. Hubbard wrote:
  I'm not Laurent, but I'll also say that simply waiting for him to answer
 this question may be the wrong approach.  For one, the project (in order to
 truly be successful) needs to move away from the single point of failure
 model that over-reliance on Laurent has historically represented.  This
 means that it needs to grow some of its own talent and expertise and the
 wait and see what Laurent says approach runs counter to this objective.
  Second, this may be a problem that really needs to be addressed in the
 Amalgalite gem itself since any component which ships with duplicate
 technology to what's in the OS runs the risk of the same namespace (and
 other) conflicts.  Are the additional compile-time features really that
 important to the gem?
 
  Thanks,
 
  - Jordan
 
  On Sep 13, 2011, at 8:12 AM, Jeremy Hinegardner wrote:
 
  Thanks, and lets hope Laurent can tell us what to do here :-).
 
  enjoy,
 
  -jeremy
 
  On Mon, Sep 12, 2011 at 07:39:37PM -0700, Matt Aimonetti wrote:
  That's a good question, and honestly I have no idea :(
  Laurent is on vacation so he's not checking the mailing list, but he
 should
  be back soon and hopefully he will have an answer.
 
  - Matt
 
  On Mon, Sep 12, 2011 at 11:39 AM, Jeremy Hinegardner 
 jer...@hinegardner.org
  wrote:
 
  Hey all,
 
  I develop the Amalgalite gem[1] and it ships with its own copy of
 SQLite.
  It does this as it adds in additional compile-time features, and I
 try and
  keep it as current as posssible.
 
  The problem is that since MacRuby is linked to CoreServices etc, the
 sqlite
  library that ships with OSX gets linked at runtime before the sqlite
  library
  that is built into the amalgalite gem extension.  I've encountered
 this
  before[2] with amalgalite, when it was loaded with my 'hitimes' gem
 (which
  on osx links
  against -framework CoreServes).
 
  I am wondering what the appropriate approach is here. I was able to
 fix
  this in
  MRI by compiling MRI with -twolevel_namespace and I think there is an
 open
  ticket
  with ruby-core to see if MRI on osx should be compiled with that
 flag.
 
  I attempted to compile MacRuby with -twolevel_namespace to resolve
 this,
  and I
  was unsuccessful. There appeared to be other flags that conflicted
 with it.
 
  I would expect something like this may also affect the nokogiri gem
 as
  limxml2
  is also a system library on osx, and may conflict with the version
 that
  nokogiri
  expects.
 
  Thoughts? Opinions? I'm sure this is a rare case, Amalgalite may be
 the
  only
  project that could experience an issue like this. What is the best
 way to
  handle
  this in the MacRuby ecosystem?
 
  enjoy,
 
  -jeremy
 
  [1] - https://github.com/copiousfreetime/amalgalite
  [2] -
 
 https://github.com/copiousfreetime/amalgalite/blob/master/lib/amalgalite/sqlite3/version.rb#L42-L56-54
  --
 
 
  Jeremy Hinegardner
 jer...@hinegardner.org
 
  ___
  MacRuby-devel mailing list
  MacRuby-devel@lists.macosforge.org
  http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
 
 
  --
 
 
  Jeremy Hinegardner  jer...@hinegardner.org
 
  ___
  MacRuby-devel mailing list

Re: [MacRuby-devel] -twolevel_namespace issue?

2011-09-12 Thread Matt Aimonetti
That's a good question, and honestly I have no idea :(
Laurent is on vacation so he's not checking the mailing list, but he should
be back soon and hopefully he will have an answer.

- Matt

On Mon, Sep 12, 2011 at 11:39 AM, Jeremy Hinegardner jer...@hinegardner.org
 wrote:

 Hey all,

 I develop the Amalgalite gem[1] and it ships with its own copy of SQLite.
 It does this as it adds in additional compile-time features, and I try and
 keep it as current as posssible.

 The problem is that since MacRuby is linked to CoreServices etc, the sqlite
 library that ships with OSX gets linked at runtime before the sqlite
 library
 that is built into the amalgalite gem extension.  I've encountered this
 before[2] with amalgalite, when it was loaded with my 'hitimes' gem (which
 on osx links
 against -framework CoreServes).

 I am wondering what the appropriate approach is here. I was able to fix
 this in
 MRI by compiling MRI with -twolevel_namespace and I think there is an open
 ticket
 with ruby-core to see if MRI on osx should be compiled with that flag.

 I attempted to compile MacRuby with -twolevel_namespace to resolve this,
 and I
 was unsuccessful. There appeared to be other flags that conflicted with it.

 I would expect something like this may also affect the nokogiri gem as
 limxml2
 is also a system library on osx, and may conflict with the version that
 nokogiri
 expects.

 Thoughts? Opinions? I'm sure this is a rare case, Amalgalite may be the
 only
 project that could experience an issue like this. What is the best way to
 handle
 this in the MacRuby ecosystem?

 enjoy,

 -jeremy

 [1] - https://github.com/copiousfreetime/amalgalite
 [2] -
 https://github.com/copiousfreetime/amalgalite/blob/master/lib/amalgalite/sqlite3/version.rb#L42-L56-54
 --
 
  Jeremy Hinegardner  jer...@hinegardner.org

 ___
 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


Re: [MacRuby-devel] XCode 4 error

2011-09-11 Thread Matt Aimonetti
As Mark said, XCode 4.1 is buggy and doesn't call out to MacRuby script for the 
IB integration. I worked with Apple to get that fixed  they seeded a fixed 
version in the last 4.2 betas. I didn't mention that in my book because by the 
time it will be published, 4.2 will be released.

If you don't have a iOS or OS X dev license, you have to wait for 4.2 (probably 
released in October or so) or use Snow Leopard's version.

- Matt

Sent from my iPhone

On Sep 11, 2011, at 9:54, Mark Rada mr...@marketcircle.com wrote:

 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 r...@flowof.info wrote:
 
 
 On 11 Sep 2011, at 16:30, Timothy Hart wrote:
 
 For some reason it started working on a reboot. So far so good. I'm still 
 getting that message when trying to build some of the examples from Matt 
 Aimonetti's MacRuby: The Definitive Guide 
 (http://ofps.oreilly.com/titles/9781449380373/index.html).
 
 
 Does Interface Builder work okay for you as well? some people had problems 
 connecting outlets to actions.
 Thanks.
 
 - 
 Rob
 
 
 On Sun, Sep 11, 2011 at 11:04 AM, Rob Gleeson r...@flowof.info wrote:
 
 On 11 Sep 2011, at 16:00, Jeremy Smith wrote:
 
  There's also the whole issue of MacRuby not working with new versions of 
  Xcode?  I thought 4.1 was one of those that the framework wouldn't load 
  in to.
 
 
 Yeah, I'm curious about this too. I got a new macbook pro and I'd like to 
 play with MacRuby.
 Is it still not working with Xcode 4.1 ?
 
 -
 Rob
 
 ___
 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
 
 ___
 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
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] XCode 4 error

2011-09-11 Thread Matt Aimonetti
The book is currently in production, so I don't think there is an official
date but it should be soon.

- Matt

On Sun, Sep 11, 2011 at 11:46 AM, Robert Love rblove_li...@comcast.netwrote:


 On Sep 11, 2011, at 12:37 PM, Matt Aimonetti wrote:

  As Mark said, XCode 4.1 is buggy and doesn't call out to MacRuby script
 for the IB integration. I worked with Apple to get that fixed  they seeded
 a fixed version in the last 4.2 betas. I didn't mention that in my book
 because by the time it will be published, 4.2 will be released.
 

 Is there a target date for publication that is public?
 ___
 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


Re: [MacRuby-devel] [ANN] Launch: MemoryCloud - Where memories live

2011-09-01 Thread Matt Aimonetti
Really cool Steven!

- Matt

On Thu, Sep 1, 2011 at 9:16 AM, Steven Buxton wantmyel...@me.com wrote:


 http://memorycloudapp.com - We built this 100% in MacRuby 0.10 and it was
 a blast to build.  Started building it in 0.6 and worked on it all the way
 to Lion and 0.10.  Never had 1 issue in app approval with it being macruby!

 About MemoryCloud --

 MemoryCloud stores your favorite photos and videos for you, allowing you to
 reclaim precious hard drive space.

 Not backup, not synchronization. MemoryCloud is simple and safe storage for
 the files that typically take up a lot of room.

 Here’s how it works: photos and videos occupy a lot of space on your Mac.
 With MemoryCloud, you just drag and drop these files to store them on
 the cloud; drag and drop again to retrieve. Smaller versions of the
 originals are kept on your hard drive so you can still view a favorite photo
 any time you want.

 Want to know what is being stored for you? MemoryCloud places a small
 watermark on your compressed files, so you instantly know what has
 been archived to the cloud.

 MemoryCloud provides a simple alternative to multiple CDs, memory cards and
 external storage devices, allowing you to carry smaller versions of your
 media with you. Finally, you don’t have to choose between cherished memories
 and hard drive space.

 MemoryCloud offers:

 * Safe storage utilizing Amazon’s state-of-the-art cloud technology.
 * A simple way to organize and access your favorite photos and videos.
 * Full compatibility with both iPhoto and iTunes.
 * The only cloud storage solution that also allows you to reclaim precious
 hard drive space.


 Thanks!
 Steven






 ___
 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


Re: [MacRuby-devel] New warning message

2011-08-21 Thread Matt Aimonetti
You can ignore this warning, it sounds like a small problem with one of the
Cocoa frameworks.

- Matt

On Sat, Aug 20, 2011 at 6:47 PM, Mark Rada mr...@marketcircle.com wrote:

 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


 On 2011-08-20, at 8:44 PM, Robert Rice wrote:

 I get this new warning message running my MacRuby app on Lion:

 *MacDriverLog(262,0x104f0e000) malloc: *** auto malloc[262]: error: GC
 operation on unregistered thread. Thread registered implicitly. Break on
 auto_zone_thread_registration_error() to debug.*
 *
 *
 This doesn't crash my app. Can I safely ignore this warning?

 Thanks,
 Bob Rice

 ___
 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


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Is there a workaround for regex named capture groups not being supported?

2011-08-18 Thread Matt Aimonetti
Have you tried re2? MacRuby supports a great number of C extensions.

- Matt

Sent from my iPhone

On Aug 18, 2011, at 8:14, Jeremy Smith xpe...@gmail.com wrote:

 I now I can't use re2 because it is a C based gem, but is there any way to 
 support named capture groups in MacRuby?  It is a pretty necessary component 
 of my project, and not having it is forcing me to look for solutions like 
 running my gem as a service, or compiling it using Rubinius.  I'd rather 
 there was a workaround!  :)
 
 Thanks,
 Jeremy
 ___
 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


Re: [MacRuby-devel] Is there a workaround for regex named capture groups not being supported?

2011-08-18 Thread Matt Aimonetti
Could I ask you to file a bug so someone can look at it?
In the meantime, I'm not sure I have a workaround for you :(

- Matt

On Thu, Aug 18, 2011 at 10:05 AM, Jeremy Smith xpe...@gmail.com wrote:

 Hi Matt,

 thanks for your reply. The re2 gem didn't install under MacRuby, but will
 install under MRI 1.9.2..

 Password:
 Building native extensions.  This could take a while...
 ERROR:  Error installing re2:
 ERROR: Failed to build gem native extension.

 /Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macruby
 extconf.rb
 checking for main() in -lstdc++... yes
 checking for main() in -lre2... yes
 creating Makefile

 make
 /usr/bin/g++ -I.
 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/universal-darwin10.0
 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward
 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2
 -I. -I/usr/local/include  -fno-common -arch x86_64 -fexceptions -fno-common
 -pipe -O3 -g -Wall -Wall -Wextra -funroll-loops -arch x86_64 -arch x86_64 -o
 re2.o -c re2.cc
 re2.cc: In function ‘void re2_matchdata_mark(re2_matchdata*)’:
 re2.cc:45: error: ‘rb_gc_mark’ was not declared in this scope
 re2.cc: In function ‘VALUE re2_Replace(VALUE, VALUE, VALUE, VALUE)’:
 re2.cc:933: error: invalid conversion from ‘const void*’ to ‘void*’
 re2.cc:933: error:   initializing argument 1 of ‘void* memcpy(void*, const
 void*, size_t)’
 re2.cc: In function ‘VALUE re2_GlobalReplace(VALUE, VALUE, VALUE, VALUE)’:
 re2.cc:983: error: invalid conversion from ‘const void*’ to ‘void*’
 re2.cc:983: error:   initializing argument 1 of ‘void* memcpy(void*, const
 void*, size_t)’
 make: *** [re2.o] Error 1


 On Thu, Aug 18, 2011 at 12:22 PM, Matt Aimonetti 
 mattaimone...@gmail.comwrote:

 Have you tried re2? MacRuby supports a great number of C extensions.

 - Matt

 Sent from my iPhone

 On Aug 18, 2011, at 8:14, Jeremy Smith xpe...@gmail.com wrote:

  I now I can't use re2 because it is a C based gem, but is there any way
 to support named capture groups in MacRuby?  It is a pretty necessary
 component of my project, and not having it is forcing me to look for
 solutions like running my gem as a service, or compiling it using Rubinius.
  I'd rather there was a workaround!  :)
 
  Thanks,
  Jeremy
  ___
  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



 ___
 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


Re: [MacRuby-devel] hello world error

2011-08-05 Thread Matt Aimonetti
hmm confirmed:

$ curl
https://raw.github.com/mattetti/MacRuby--The-Definitive-Guide/master/chapter_1/hello_world.rb
hello_world.rb
  % Total% Received % Xferd  Average Speed   TimeTime Time
 Current
 Dload  Upload   Total   SpentLeft
 Speed
100  1074  100  10740 0   2152  0 --:--:-- --:--:-- --:--:--
 2658
[mattetti@Matt-Aimonettis-MacBook-Pro tmp]$ macruby hello_world.rb
Hello World!
macruby(52532,0x10de04000) malloc: *** auto malloc[52532]: error: GC
operation on unregistered thread. Thread registered implicitly. Break on
auto_zone_thread_registration_error() to debug.
Hello World!
Hello World!

I've switched to Lion so I don't know if there is a relation whatsoever but
that is a bit odd (the app works normall, but the GC doesn't seem happy).
Could you please open a ticket?

Thanks,

- Matt


On Fri, Aug 5, 2011 at 1:47 PM, Emil Tin e...@tin.dk wrote:



 hi,

 it's been a while since i played with macruby, so i did a fresh install of
 0.10 from binary om my 10.7 system and copied the hello world example from:


 https://github.com/mattetti/MacRuby--The-Definitive-Guide/blob/master/chapter_1/hello_world.rb


 but running it and clicking the 'hello world' button prints an error:


 ~/Desktop/macruby$ macruby hello_world.rb
 Hello World!
 macruby(83412,0x10abe8000) malloc: *** auto malloc[83412]: error: GC
 operation on unregistered thread. Thread registered implicitly. Break on
 auto_zone_thread_registration_error() to debug.



 Otherwise things seem to work; the voice is there when you click the
 button.


 -Emil
 ___
 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


Re: [MacRuby-devel] Small WebView commandline script

2011-08-03 Thread Matt Aimonetti
ohh that's a neat trick, thanks Eloy!

- Matt

On Wed, Aug 3, 2011 at 1:39 AM, Eloy Durán eloy.de.en...@gmail.com wrote:

  2) Is there anyway to embed/access a web developer console like the one
 in Safari?

 You can enable it by doing the following at the start of the app:

 NSUserDefaults.registerDefaults(WebKitDeveloperExtras = true)


 ___
 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


  1   2   3   4   5   >