Questions tagged [teacup]

A community-driven DSL for creating user interfaces on iOS and OS X.

Using Teacup, you can create and style layouts and keeping your code dry. The goal is to offer a rubyesque (well, actually a rubymotion-esque) way to create interfaces programmatically.

6 questions
3
votes
1 answer

ProMotion Styling Table Cells with Teacup

I've looked all over for the Google answer to this, but no joy. What I'd like to do is mix and match Teacup and ProMotion for tables. The overall table is pretty easy. Just add this to the hash for the data element in the table_data…
Steve Ross
  • 4,134
  • 1
  • 28
  • 40
1
vote
1 answer

Can I use Teacup to manage custom offline Tcl code

I'm trying to figure out a good way for my company to have a local repository/package manager (something a little more user friendly than git). I like Teacup and we are using ActiveState Tcl anyways (Tcl 8.5, we have legacy systems using this…
als0052
  • 388
  • 3
  • 13
1
vote
1 answer

RubyMotion: losing superview after opening a new screen

I'm using a combination of ProMotion, Teacup, and MMDrawerController. When I load the app, everything works fine, but when I try to change from one screen to another, I'm getting an error with Teacup because the superview is nil. The Teacup error…
Adam Rubin
  • 777
  • 1
  • 7
  • 16
0
votes
1 answer

RubyMotion - Styling NSTableCellView with Teacup

I'm beginning with Rubymotion development, and I'm creating my first NSTableView with custom cells. The following code is working, but I cannot manage to see how I should declare the NSTableCellView with Teacup layout (in order to move frame size in…
Chris
  • 2,744
  • 3
  • 24
  • 39
0
votes
1 answer

How to style a button using teacup

I'm using teacup to style my button. I'd like the text to wrap and the button to be a circle - so i want to set the button to rounded corners, set the radius etc. How can i do this with teacup? Here is how i'm defining my button: add button =…
Will
  • 4,498
  • 2
  • 38
  • 65
0
votes
1 answer

Rubymotion Teacup variable scope

Following the Tweets example of Teacup, I'm trying to access a variable outside of the layout block class WindowController < TeacupWindowController stylesheet :pref_window layout do @loginButton = subview( NSButton, :loginButton, …
vash
  • 52
  • 1
  • 6