Questions tagged [rubymotion]

RubyMotion is a commercial system for building native iOS and Android apps using Ruby.

RubyMotion is a commercial system that allows writing cross-platform apps for iOS, Android and OS X in Ruby. For iOS, RubyMotion compiles Ruby source code to machine code and implements the Ruby object model using the Objective-C runtime.

Links

Related tags

681 questions
5
votes
2 answers

Trouble with new RubyMotion and Joybox

Is anyone having trouble with the updated rubymotion with joybox? I just updated rubymotion this morning and my app broke immediately... Here is my error. Inheriting from Motion::Project::Command' has been deprecated, inherit fromMotion::Command'…
m. sherman
  • 165
  • 11
5
votes
0 answers

NSTokenField completion list style

I'm a beginner in OSX development so I hope my question will find a solution here. I have an NSTokenField in my app and I implemented the tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem: method. Everything works fine but the…
siekfried
  • 2,964
  • 1
  • 21
  • 36
5
votes
1 answer

Remove time zone offset from date in iOS

I need to get the current NSDate.date and remove the time zone and parse it as a GMT date NSDate.date returns 2012-10-11 11:27:09 -0700 What I need is this: 2012-10-11 11:27:09 +0000
silasjmatson
  • 1,814
  • 18
  • 37
5
votes
1 answer

Rubymotion: Download and Extract Zip File in iOS

I need to download and uncompress a file in RubyMotion. I tried looking for examples but could not find any of this process. I have a variable (@file) that is all of the data from the request. I need to write that data to a file and then uncompress…
miskander
  • 125
  • 8
5
votes
3 answers

Code completion for MacRuby/PyObjC/RubyMotion

One of Xcode's most powerful features is it's Intellisense completion, which brings up a list of potential candidates as you type the name of a Foundation/Cocoa/UIKit API. I am very interested in MacRuby, PyObjC, or the more recent RubyMotion,…
Brian Gesiak
  • 6,648
  • 4
  • 35
  • 50
4
votes
1 answer

What are all the valid SystemCapabilities keys possible usually generated by Xcode?

I do not use Xcode to build my IPA. I tried searching apple documentation, but I cannot find what the key values are for all possible system capabilities. In order to not be lazy, I also tried to archive a project with these capabilities turned on,…
Ryan Romanchuk
  • 10,819
  • 6
  • 37
  • 41
4
votes
1 answer

Pointer handling with RubyMotion

I'm trying to port the following method to RubyMotion - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { NSInteger dataLength = [data length]; const uint8_t * dataBytes = [data bytes]; NSInteger …
Andy Waite
  • 10,785
  • 4
  • 33
  • 47
4
votes
2 answers

Where to define global constants in RubyMotion?

I'd like to define global constants in RubyMotion. What is the best way to declare global constants? If it's Rails, put global constants in config/initializers/constants.rb is common way, I think. Any alternative place in RubyMotion?
Naoyoshi Aikawa
  • 1,135
  • 10
  • 16
4
votes
4 answers

Is there anything I shouldn't save in NSUserDefaults

I've just got started with RubyMotion and, from what I can tell, it suggests using NSUserDefaults for a datastore. This seems kind of strange to me as the name suggests that it should be only used for storing config variables etc and not objects. Is…
Gerard
  • 4,818
  • 5
  • 51
  • 80
4
votes
1 answer

Rubymotion: NoMethodError for added method

I added an extra method to the String class. I want to use this method later on, but I get a no Method error. class String def as_file_full_path NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true) …
Raymond
  • 3,630
  • 2
  • 19
  • 22
4
votes
2 answers

Change font for UIBarButtonItem

I am building an iOS app using Rubymotion and I need to set the font family to a custom font for a button in the navigation bar (UIBarButtonItem). I know I do it like this in Objective-C but how is it done in Ruby? [buttonItem…
Jonathan Clark
  • 19,726
  • 29
  • 111
  • 175
4
votes
1 answer

UINavigationBar appearance in RubyMotion not working

I'm trying to customize the navigation bar in a RubyMotion app but can't seem to change the title text font or color. I can set the background image and tint but not the title attributes. class AppDelegate def application(application,…
JWright
  • 473
  • 1
  • 4
  • 8
4
votes
1 answer

Anybody know what this error means? will be fat and ar(1) will not be able to operate on it

I'm compiling my app (it's a Rubymotion app) with SSPullToRefresh and keep getting this message: will be fat and ar(1) will not be able to operate on it Anybody know what it means and how I should deal with it?
bodacious
  • 6,608
  • 9
  • 45
  • 74
4
votes
2 answers

Include not finding module RubyMotion

Are mixins allowed in RubyMotion? I have a directory with two files. One is a class, the other a module. When I include the module (mixin) in my class, I get a not found error. Everything under app is automatically required in RM right? Thanks for…
Cocoa Nub
  • 489
  • 7
  • 20
4
votes
2 answers

How to pass parameters via the selector/action?

Is there a way to pass parameters via the addTarget call as it calls another function? I've also tried the sender method - but that seems to break as well. What's the correct way to pass the parameters without creating global variables? @my_button =…
RedNax
  • 1,507
  • 1
  • 10
  • 20
1 2
3
45 46