A lack of RubyMotion news and posts

Ken (@seriousken) and I were talking when I first started the RubyMotion Dispatch. We discussed how it may be hard, because there won’t be enough content to write one every week, the RubyMotion community just wasn’t big enough. Well, this is issue number 10 and a lack of news and blog posts has definitely not been my problem. Even over the holidays there were plenty of posts and I’m sure I miss some every week. It’s good to see the community is vibrant and growing.

Happy coding, Todd Werth (@twerth)

Articles, News, and Blog Posts


Jan 13th, 2014 – “Overriding BubbleWrap Methods” by Mark Rickert

Jan 13th, 2014 – “ERB vs UIView – Requesting Data” by Jack Watson-Hamblin

Jan 12th, 2014 – “A Different Kind of MVC” by Jack Watson-Hamblin

Jan 11th, 2014 – “DOGEPrice – OS X app” by James A. Anderson

Jan 11th, 2014 – “Simple Yelp search using Rubymotion. My First Rubymotion app!” by faizaanshamsi

Jan 10th, 2014 – “MotionSwReveal – A ProMotion gem for SWRevealViewController” by W.R. de Vos

Jan 10th, 2014 – “On learning Ruby Motion versus Objective C & Xcode” by Alasdair Monk

Jan 9th, 2014 – “More Community Members” by Jack Watson-Hamblin

Jan 9th, 2014 – “My Sublime Setup” by Jack Watson-Hamblin

Jan 8th, 2014 – “The Amazing Power of NSCoding” by Jack Watson-Hamblin

Jan 7th, 2014 – “5 Ways To Improve Your RubyMotion Apps Organisation” by Jack Watson-Hamblin

Jan 7th, 2014 – “Renaming Your iOS App” by Mark Rickert

Jan 7th, 2014 – “RubyMotion and 3rd Party Native Frameworks: Vendoring vs Gems” by Ryan Grey

In case you missed it

Automatic screenshots for your RubyMotion apps” by Clay Allsopp

Building native iOS apps using modern technologies with RubyMotion” by Laurent Sansonetti

Poll of the Week


OS X, iOS, or both?

Last week’s poll, “What versions of iOS do you support?”:

  • iOS 7 only –  8 votes (89%)
  • iOS 6 and above – 1 vote (11%)
  • iOS 5 and above – 0 votes (0%)

This was not a popular poll, only 9 votes :-(.

RubyMotion Tip


Puts and NSLog:
You can output to the console with either puts or NSLog, but only NSLog will output to the console on your device, XCode/Organizer/DEVICES/Your device/Console:
puts ‘foo’
NSLog ‘foo’

RMQ Tip


What is RubyMotionQuery (RMQ) you ask? Check out  this site

Log Tree

A very handy logging tool is RMQ’s tree logging. You can log the entire tree of the controller, or just the tree of a specific UIView. This is for the entire tree:
rmq.log :tree

This is just for the Section view in RMQ’s example app:
rmq(:section).log :tree

Which outputs this:
(main)> rmq(:section).log :tree
─── Section  ( section )  150081248  {l: 25, t: 448, w: 270, h: 110}
├─── UILabel  ( section_title )  150085056  {l: 10, t: 10, w: 150, h: 20}
├─── UISwitch  ( section_enabled )  150091072  {l: 10, t: 30, w: 51, h: 31}
│    ├─── _UISwitchInternalViewN  150092000  {l: 0, t: 0, w: 51, h: 31}
│    │    ├─── UIView  150093184  {l: 35.5, t: 0, w: 15.5, h: 31}
│    │    │    ├─── UIView  150092752  {l: -35.5, t: 0, w: 51, h: 31}
│    │    ├─── UIView  150093040  {l: 0, t: 0, w: 35.5, h: 31}
│    │    │    ├─── UIView  150092896  {l: 0, t: 0, w: 51, h: 31}
│    │    ├─── UIView  150097968  {l: 0, t: 0, w: 51, h: 31}
│    │    │    ├─── UIImageView  150097248  {l: 39, t: 16, w: 0, h: 0}
│    │    │    ├─── UIImageView  150097776  {l: 12, t: 16, w: 0, h: 0}
│    │    ├─── UIImageView  150093600  {l: 7, t: -6, w: 57, h: 43.5}
├─── UIButton  ( start_spinner )  150104224  {l: 10, t: 64, w: 120, h: 40}
│    ├─── UIButtonLabel  150202656  {l: 8, t: 9, w: 104, h: 22}
├─── UIButton  ( stop_spinner )  150108512  {l: 140, t: 64, w: 120, h: 40}
│    ├─── UIButtonLabel  150199280  {l: 8, t: 9, w: 103, h: 22}
=> nil
(main)>