Skip to content

Commit

Permalink
the TeacupDummy fix. I don't understand it, but it works for whatever…
Browse files Browse the repository at this point in the history
… reason!
  • Loading branch information
colinta committed Oct 30, 2012
1 parent 529fe9b commit 0031d4e
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
.repl_history
*.bridgesupport
build
resources/*.nib
resources/*.momd
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Expand Up @@ -8,4 +8,5 @@ Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'teacup'
app.identifier = 'com.rubymotion.teacup'
app.vendor_project 'vendor/TeacupDummy', :static
end
6 changes: 6 additions & 0 deletions lib/dummy.rb
@@ -1,3 +1,9 @@
class TeacupDummy
def anyMethodName
@anyobject.type = nil
end
end

class DummyView < UIView
private
def dummy
Expand Down
2 changes: 2 additions & 0 deletions lib/teacup.rb
Expand Up @@ -21,4 +21,6 @@
Dir.glob(File.join(File.dirname(__FILE__), 'teacup/**/*.rb')).reverse.each do |file|
app.files.insert(insert_point, file)
end

app.vendor_project File.join(File.dirname(__FILE__), '../vendor/TeacupDummy'), :static
end
11 changes: 11 additions & 0 deletions vendor/TeacupDummy/TeacupDummy.h
@@ -0,0 +1,11 @@
#import <Foundation/Foundation.h>

enum {
AnyType = 0,
};
typedef char AnyOldType;

@interface TeacupDummy : NSObject
- (void) setType:(AnyOldType)type;
- (AnyOldType) type;
@end
8 changes: 8 additions & 0 deletions vendor/TeacupDummy/TeacupDummy.m
@@ -0,0 +1,8 @@
#import "TeacupDummy.h"

@implementation TeacupDummy
- (void) setType:(AnyOldType)type {}
- (AnyOldType) type {
return AnyType;
}
@end

0 comments on commit 0031d4e

Please sign in to comment.