#inspect 2014 videos are here

The RubyMotion #inspect 2014 conference videos are here.

There are a lot of great talks. Laurent, Watson, and Eloy talk about RM 3.0. You’ve all heard about the Android support, but watch Watson and Eloy talk about some other cool stuff.


If you missed the last issue, you can find it here: issue #32.

Happy coding, Todd Werth (@twerth)

Articles, News, New Gems, and Blog Posts


July 17th, 2014 | meetup | by RubyMotionJP
13th RubyMotion Mokumoku meeting in Osaka Japan

June 24th, 2014 | video | by Will Raxworthy
iBeacons and RubyMotion

June 23th, 2014 | screencast | by Jack Watson-Hamblin
Episode 30 – Animations with CALayer

June 20th, 2014 | app | by Masashi Shinbara
the Vagrant GUI client for Mac OS X

June 20th, 2014 | blog post | by Henrik Hodne
Travis-ci updated to use RubyMotion 2.29

June 20th, 2014 | video | by Confreaks
Inspect 2014

June 18th, 2014 | slides | by Satoshi Ebisawa
About RubyMotion

June 15th, 2014 | new gem | by Ignacio Piantanida
bacon-expect – Bring RSpec 3.0 expect syntax to MacBacon

June 10th, 2014 | blog post | by Daniel Spector
Swift Will Only Benefit RubyMotion

June 7th, 2014 | blog post | by Nick Arnott
What developers should know about appleā€™s testflight

Hidden Gem by Gant Laborde of Iconoclast Labs


You’re told to test on an ACTUAL device early and often. But, hey… you know how big something needs to be so it’s friendly for touch, right? And who has that damn cable? O well… I’ll test it on a device later.

Well, here’s yet another reason for you test on a device, a simple typo can cause a bit of headache. If you load an image e.g. UIImage.imageNamed("logo") (in RMQ rmq.image.resource('logo')), but the file is in resources and named with a capital letter Logo@2x.png. It will work in the simulator, but fail to show on the actual device!

So next time the client complains that they can’t see an image in their latest TestFlight build, you might want to check that your case-sensitive image name is correct.

RubyMotion Tip of the Week by Marcos Villacampa


Run your app in an arbitrary language and locale:

rake args="-AppleLanguages en -AppleLocale en_EN"

RMQ News


Watch the #inspect video about RMQ.

Version v0.6 has finally been released. See here.

Add a button:

rmq.append(UIButton).layout('a3:d4').data("Tap me").on(:touch){|sender| puts 'touched'}

Open the inspector:

rmq.all.inspector

From the Archives

Because it’s easier to copy and paste than to write


Dates inherit NSDate, strings inherit NSMutableString (which inherits NSString), and arrays inherit NSMutableArray (which inherits NSArray).

This is useful because you get all the normal Ruby string stuff, but you also get the NSMutableString and NSString stuff. There are some cool things in there, check out the docs (and use Dash for your docs)

Here is a cool example, NSArray has the pathsMatchingExtensions method:

(main)> [ '/foo/bar/hello.txt', 'report.pdf', '/user/me/resume.doc' ].pathsMatchingExtensions([ 'txt', 'doc' ])
 => ["/foo/bar/hello.txt", "/user/me/resume.doc"]
(main)>

Wat!


If you add this to the gem file, I fire you; just sayin’.


If you have any tips, blog posts, or want to sponsor this newsletter, please send emails to todd@infinitered.com