rhodes 2.0.0.beta2 → 2.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +2 -0
- data/Manifest.txt +27 -148
- data/Rakefile +49 -3
- data/lib/framework/builtinME.rb +6 -0
- data/lib/framework/rho/render.rb +13 -8
- data/lib/framework/rho/rho.rb +97 -43
- data/lib/framework/rho/rhoapplication.rb +8 -3
- data/lib/framework/rho/rhocontroller.rb +1 -1
- data/lib/framework/rhodes-framework.rb +1 -1
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/rhoframework.rb +7 -22
- data/lib/framework/rhofsconnector.rb +1 -1
- data/lib/framework/rholang/localization_simplified.rb +2 -2
- data/lib/framework/rhom/rhom.rb +1 -0
- data/lib/framework/rhom/rhom_db_adapter.rb +2 -2
- data/lib/framework/rhom/rhom_model.rb +98 -0
- data/lib/framework/rhom/rhom_object_factory.rb +13 -12
- data/lib/rhodes.rb +1 -1
- data/platform/android/Rhodes/jni/include/{JNIRhodes.h → rhodes/JNIRhodes.h} +3 -54
- data/platform/android/Rhodes/jni/include/{RhoClassFactory.h → rhodes/RhoClassFactory.h} +0 -0
- data/platform/android/Rhodes/jni/include/{SystemInfoImpl.h → rhodes/SystemInfoImpl.h} +0 -0
- data/platform/android/Rhodes/jni/include/{details → rhodes/details}/rhojava.inc +1 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_Logger.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_RhoConf.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_RhoLogConf.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_RhoMenu.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_Rhodes.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_SplashScreen.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_alert_Alert.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_camera_Camera.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_datetime_DateTimePicker.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_geolocation_GeoLocationImpl.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_socket_RhoSocketImpl.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_socket_SSLImpl.h +0 -0
- data/platform/android/Rhodes/jni/include/{sslimpl.h → rhodes/sslimpl.h} +0 -0
- data/platform/android/Rhodes/jni/include/rhodes.h +59 -0
- data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +3 -3
- data/platform/android/Rhodes/jni/src/alert.cpp +2 -2
- data/platform/android/Rhodes/jni/src/callbacks.cpp +4 -3
- data/platform/android/Rhodes/jni/src/camera.cpp +2 -2
- data/platform/android/Rhodes/jni/src/datetimepicker.cpp +2 -2
- data/platform/android/Rhodes/jni/src/geolocation.cpp +2 -2
- data/platform/android/Rhodes/jni/src/logconf.cpp +2 -2
- data/platform/android/Rhodes/jni/src/logger.cpp +2 -2
- data/platform/android/Rhodes/jni/src/mapview.cpp +1 -1
- data/platform/android/Rhodes/jni/src/menu.cpp +2 -2
- data/platform/android/Rhodes/jni/src/nativebar.cpp +1 -1
- data/platform/android/Rhodes/jni/src/navbar.cpp +17 -3
- data/platform/android/Rhodes/jni/src/phonebook.cpp +1 -1
- data/platform/android/Rhodes/jni/src/rhoconf.cpp +2 -2
- data/platform/android/Rhodes/jni/src/rhodes.cpp +3 -3
- data/platform/android/Rhodes/jni/src/ringtones.cpp +1 -1
- data/platform/android/Rhodes/jni/src/socketimpl.cpp +2 -2
- data/platform/android/Rhodes/jni/src/splashscreen.cpp +2 -2
- data/platform/android/Rhodes/jni/src/sslimpl.cpp +3 -3
- data/platform/android/Rhodes/jni/src/syncengine.cpp +2 -2
- data/platform/android/Rhodes/jni/src/webview.cpp +15 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeLibraries.java +11 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NavBar.java +52 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Rhodes.java +8 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +26 -28
- data/platform/android/build/RhodesSRC_build.files +21 -20
- data/platform/android/build/android.rake +69 -24
- data/platform/android/build/androidcommon.rb +17 -12
- data/platform/bb/build/bb.rake +23 -21
- data/platform/bb/rhodes/src/com/rho/BrowserAdapter.java +5 -2
- data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +6 -1
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +9 -1
- data/platform/bb/rhodes/src/com/rho/rubyext/WebView.java +31 -2
- data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +17 -6
- data/platform/bb/rhodes/src/rhomobile/Utilities.java +6 -0
- data/platform/iphone/Classes/AppManager/AppManager.m +16 -4
- data/platform/iphone/Classes/DateTime.h +5 -6
- data/platform/iphone/Classes/DateTimePicker.m +4 -18
- data/platform/iphone/Classes/DateTimePickerDelegate.h +7 -9
- data/platform/iphone/Classes/DateTimePickerDelegate.m +141 -152
- data/platform/iphone/Classes/Rhodes.h +6 -1
- data/platform/iphone/Classes/Rhodes.m +17 -43
- data/platform/iphone/Classes/SimpleMainView.h +1 -1
- data/platform/iphone/Classes/SimpleMainView.m +54 -4
- data/platform/iphone/Classes/WebView.m +17 -0
- data/platform/iphone/rbuild/iphone.rake +1 -0
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +0 -45
- data/platform/shared/common/PosixThreadImpl.cpp +8 -0
- data/platform/shared/common/PosixThreadImpl.h +1 -0
- data/platform/shared/common/RhoThread.cpp +1 -0
- data/platform/shared/common/RhoThread.h +4 -2
- data/platform/shared/curl/include/curl/curl.h +4 -0
- data/platform/shared/db/DBAdapter.cpp +47 -60
- data/platform/shared/db/DBAdapter.h +6 -2
- data/platform/shared/net/AsyncHttp.cpp +27 -11
- data/platform/shared/net/AsyncHttp.h +3 -1
- data/platform/shared/net/CURLNetRequest.cpp +11 -10
- data/platform/shared/net/CURLNetRequest.h +6 -4
- data/platform/shared/net/HttpServer.cpp +11 -6
- data/platform/shared/ruby/ext/asynchttp/asynchttp.i +2 -2
- data/platform/shared/ruby/ext/asynchttp/asynchttp_wrap.c +22 -11
- data/platform/shared/ruby/ext/rho/rhoruby.c +2 -2
- data/platform/shared/ruby/ext/rho/rhosupport.c +23 -3
- data/platform/shared/ruby/ext/webview/webview.i +4 -0
- data/platform/shared/ruby/ext/webview/webview_wrap.c +39 -0
- data/platform/shared/ruby/re.c +8 -0
- data/platform/shared/ruby/string.c +1 -1
- data/platform/shared/rubyJVM/src/com/rho/IRhoRubyHelper.java +1 -0
- data/platform/shared/rubyJVM/src/com/rho/RhoClassFactory.java +6 -1
- data/platform/shared/rubyJVM/src/com/rho/RhoThread.java +3 -0
- data/platform/shared/rubyJVM/src/com/rho/RhodesApp.java +34 -0
- data/platform/shared/rubyJVM/src/com/rho/db/DBAdapter.java +40 -53
- data/platform/shared/rubyJVM/src/com/rho/net/AsyncHttp.java +32 -15
- data/platform/shared/rubyJVM/src/com/rho/net/NetRequest.java +31 -17
- data/platform/shared/rubyJVM/src/com/rho/net/RhoConnection.java +3 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/JSONArrayIterator.java +17 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncEngine.java +158 -137
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncSource.java +18 -17
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncThread.java +10 -2
- data/platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyFile_Methods.java +6 -0
- data/platform/shared/rubyJVM/src/com/xruby/runtime/builtin/RubyFile.java +18 -3
- data/platform/shared/rubyJVM/src/j2me/io/File.java +37 -9
- data/platform/shared/sqlite/sqlite3.c +14613 -13016
- data/platform/shared/sqlite/sqlite3.h +1461 -1499
- data/platform/shared/sqlite/sqlite3ext.h +0 -2
- data/platform/shared/sync/ClientRegister.cpp +3 -3
- data/platform/shared/sync/ClientRegister.h +2 -1
- data/platform/shared/sync/SyncEngine.cpp +20 -8
- data/platform/shared/sync/SyncSource.cpp +12 -12
- data/platform/shared/sync/SyncSource.h +4 -4
- data/platform/shared/sync/SyncThread.cpp +8 -1
- data/platform/shared/tcmalloc/rhomem.h +3 -0
- data/platform/shared/tcmalloc/tcmalloc_.cpp +11 -0
- data/platform/wm/rhodes/Alert.cpp +148 -101
- data/platform/wm/rhodes/Alert.h +4 -1
- data/platform/wm/rhodes/AppManager.cpp +212 -72
- data/platform/wm/rhodes/AppManager.h +24 -3
- data/platform/wm/rhodes/DateTimePicker.cpp +23 -11
- data/platform/wm/rhodes/DateTimePicker.h +16 -5
- data/platform/wm/rhodes/MainWindow.cpp +22 -7
- data/platform/wm/rhodes/OkCancelModalDialog.h +63 -0
- data/platform/wm/rhodes/Rhodes.cpp +29 -17
- data/platform/wm/rhodes/phonebook/NativeAddressBook.cpp +128 -4
- data/platform/wm/rhodes/phonebook/NativeAddressBook.h +33 -3
- data/platform/wm/rhodes/resource.h +1 -1
- data/platform/wm/rhodes/rho/common/RhoClassFactory.cpp +5 -0
- data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +136 -102
- data/platform/wm/rhodes/rho/net/NetRequestImpl.h +12 -5
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +24 -10
- data/platform/wm/rhodes/rho/rubyext/WebView.cpp +6 -0
- data/platform/wm/rhodes/rhodes.vcproj +4 -0
- data/platform/wm/tools/detool/detool.cpp +17 -4
- data/rakefile.rb +49 -3
- data/res/build-tools/db/syncdb.schema +2 -2
- data/res/build-tools/detool.exe +0 -0
- data/res/generators/rhogen.rb +10 -10
- data/res/generators/templates/application/app/helpers/browser_helper.rb +9 -4
- data/res/generators/templates/application/app/index.bb.erb +5 -5
- data/res/generators/templates/application/build.yml +1 -0
- data/res/generators/templates/application/public/css/android.css +10 -8
- data/res/generators/templates/application/public/css/blackberry.css +40 -31
- data/res/generators/templates/application/public/css/iphone.css +4 -4
- data/res/generators/templates/application/public/css/webkit.css +7 -0
- data/res/generators/templates/application/public/css/windows_mobile.css +31 -27
- data/res/generators/templates/application/rhoconfig.txt +2 -2
- data/res/generators/templates/model/edit.bb.erb +2 -2
- data/res/generators/templates/model/index.bb.erb +6 -4
- data/res/generators/templates/model/model.rb +2 -1
- data/res/generators/templates/model/new.bb.erb +2 -2
- data/res/generators/templates/model/show.bb.erb +2 -2
- data/rhobuild.yml +37 -0
- data/rhodes.gemspec +1 -1
- data/spec/framework_spec/app/Account/account.rb +7 -0
- data/spec/framework_spec/app/Case/case.rb +6 -0
- data/spec/framework_spec/app/Customer/customer.rb +6 -0
- data/spec/framework_spec/app/Product/product.rb +9 -0
- data/spec/framework_spec/app/spec/rhom_object_spec.rb +1 -1
- data/spec/framework_spec/app/spec/syncengine_spec.rb +2 -1
- metadata +45 -151
- data/lib/build/manifest/createAppManifest.rb +0 -18
- data/lib/build/tasks/android.rake +0 -317
- data/lib/build/tasks/blackberry.rake +0 -355
- data/lib/build/tasks/common.rake +0 -62
- data/lib/build/tasks/iphone.rake +0 -108
- data/lib/build/tasks/linux.rake +0 -81
- data/lib/build/tasks/rhodes-build.rb +0 -11
- data/lib/build/tasks/rspec.rake +0 -20
- data/lib/build/tasks/symbian.rake +0 -202
- data/lib/build/tasks/wm.rake +0 -166
- data/lib/framework/ServeME.rb +0 -7
- data/platform/bb/build/MANIFEST.MF +0 -12
- data/platform/iphone/Classes/DateTimePicker.h +0 -17
- data/res/generators/templates/application/public/icons/Read me first - license.txt +0 -14
- data/res/generators/templates/application/public/icons/about.png +0 -0
- data/res/generators/templates/application/public/icons/airplane.png +0 -0
- data/res/generators/templates/application/public/icons/baby.png +0 -0
- data/res/generators/templates/application/public/icons/badge.png +0 -0
- data/res/generators/templates/application/public/icons/bandaid.png +0 -0
- data/res/generators/templates/application/public/icons/bar-chart.png +0 -0
- data/res/generators/templates/application/public/icons/battery.png +0 -0
- data/res/generators/templates/application/public/icons/beaker.png +0 -0
- data/res/generators/templates/application/public/icons/beaker2.png +0 -0
- data/res/generators/templates/application/public/icons/beermug.png +0 -0
- data/res/generators/templates/application/public/icons/bird.png +0 -0
- data/res/generators/templates/application/public/icons/book.png +0 -0
- data/res/generators/templates/application/public/icons/bookmark.png +0 -0
- data/res/generators/templates/application/public/icons/brightness.png +0 -0
- data/res/generators/templates/application/public/icons/bug.png +0 -0
- data/res/generators/templates/application/public/icons/cabinet.png +0 -0
- data/res/generators/templates/application/public/icons/calendar.png +0 -0
- data/res/generators/templates/application/public/icons/camera.png +0 -0
- data/res/generators/templates/application/public/icons/changeName.rb +0 -22
- data/res/generators/templates/application/public/icons/chat2.png +0 -0
- data/res/generators/templates/application/public/icons/chicken.png +0 -0
- data/res/generators/templates/application/public/icons/clock.png +0 -0
- data/res/generators/templates/application/public/icons/cloud.png +0 -0
- data/res/generators/templates/application/public/icons/coffee.png +0 -0
- data/res/generators/templates/application/public/icons/compass.png +0 -0
- data/res/generators/templates/application/public/icons/contrast.png +0 -0
- data/res/generators/templates/application/public/icons/dashboard.png +0 -0
- data/res/generators/templates/application/public/icons/display.png +0 -0
- data/res/generators/templates/application/public/icons/dogpaw.png +0 -0
- data/res/generators/templates/application/public/icons/download.png +0 -0
- data/res/generators/templates/application/public/icons/dumbbell.png +0 -0
- data/res/generators/templates/application/public/icons/ekg.png +0 -0
- data/res/generators/templates/application/public/icons/envelope.png +0 -0
- data/res/generators/templates/application/public/icons/equalizer.png +0 -0
- data/res/generators/templates/application/public/icons/eye.png +0 -0
- data/res/generators/templates/application/public/icons/film-roll.png +0 -0
- data/res/generators/templates/application/public/icons/flag.png +0 -0
- data/res/generators/templates/application/public/icons/fork-and-knife.png +0 -0
- data/res/generators/templates/application/public/icons/fuel.png +0 -0
- data/res/generators/templates/application/public/icons/gameplan.png +0 -0
- data/res/generators/templates/application/public/icons/gear.png +0 -0
- data/res/generators/templates/application/public/icons/gear2.png +0 -0
- data/res/generators/templates/application/public/icons/gift.png +0 -0
- data/res/generators/templates/application/public/icons/heart.png +0 -0
- data/res/generators/templates/application/public/icons/house.png +0 -0
- data/res/generators/templates/application/public/icons/inbox.png +0 -0
- data/res/generators/templates/application/public/icons/index-cards.png +0 -0
- data/res/generators/templates/application/public/icons/iphone.png +0 -0
- data/res/generators/templates/application/public/icons/ipod.png +0 -0
- data/res/generators/templates/application/public/icons/key.png +0 -0
- data/res/generators/templates/application/public/icons/lifebuoy.png +0 -0
- data/res/generators/templates/application/public/icons/lightbulb.png +0 -0
- data/res/generators/templates/application/public/icons/line-chart.png +0 -0
- data/res/generators/templates/application/public/icons/location.png +0 -0
- data/res/generators/templates/application/public/icons/lock.png +0 -0
- data/res/generators/templates/application/public/icons/loopback.png +0 -0
- data/res/generators/templates/application/public/icons/magnifying-glass.png +0 -0
- data/res/generators/templates/application/public/icons/map-marker.png +0 -0
- data/res/generators/templates/application/public/icons/map.png +0 -0
- data/res/generators/templates/application/public/icons/medical-bag.png +0 -0
- data/res/generators/templates/application/public/icons/medical.png +0 -0
- data/res/generators/templates/application/public/icons/microphone.png +0 -0
- data/res/generators/templates/application/public/icons/movie1.png +0 -0
- data/res/generators/templates/application/public/icons/movie2.png +0 -0
- data/res/generators/templates/application/public/icons/network.png +0 -0
- data/res/generators/templates/application/public/icons/note.png +0 -0
- data/res/generators/templates/application/public/icons/outlet.png +0 -0
- data/res/generators/templates/application/public/icons/palette.png +0 -0
- data/res/generators/templates/application/public/icons/paperclip.png +0 -0
- data/res/generators/templates/application/public/icons/phone.png +0 -0
- data/res/generators/templates/application/public/icons/photos.png +0 -0
- data/res/generators/templates/application/public/icons/piano.png +0 -0
- data/res/generators/templates/application/public/icons/picture-frame.png +0 -0
- data/res/generators/templates/application/public/icons/pill.png +0 -0
- data/res/generators/templates/application/public/icons/pin.png +0 -0
- data/res/generators/templates/application/public/icons/pinetree.png +0 -0
- data/res/generators/templates/application/public/icons/planet.png +0 -0
- data/res/generators/templates/application/public/icons/puzzle.png +0 -0
- data/res/generators/templates/application/public/icons/radar.png +0 -0
- data/res/generators/templates/application/public/icons/redo.png +0 -0
- data/res/generators/templates/application/public/icons/refresh.png +0 -0
- data/res/generators/templates/application/public/icons/runner.png +0 -0
- data/res/generators/templates/application/public/icons/shoebox.png +0 -0
- data/res/generators/templates/application/public/icons/shopping-bag.png +0 -0
- data/res/generators/templates/application/public/icons/shopping-cart.png +0 -0
- data/res/generators/templates/application/public/icons/shuffle.png +0 -0
- data/res/generators/templates/application/public/icons/signpost.png +0 -0
- data/res/generators/templates/application/public/icons/skull-n-crossbones.png +0 -0
- data/res/generators/templates/application/public/icons/skull.png +0 -0
- data/res/generators/templates/application/public/icons/sliders.png +0 -0
- data/res/generators/templates/application/public/icons/spraycan.png +0 -0
- data/res/generators/templates/application/public/icons/squiggle.png +0 -0
- data/res/generators/templates/application/public/icons/star.png +0 -0
- data/res/generators/templates/application/public/icons/stopwatch.png +0 -0
- data/res/generators/templates/application/public/icons/suitcase.png +0 -0
- data/res/generators/templates/application/public/icons/tag.png +0 -0
- data/res/generators/templates/application/public/icons/tags.png +0 -0
- data/res/generators/templates/application/public/icons/target.png +0 -0
- data/res/generators/templates/application/public/icons/testtube.png +0 -0
- data/res/generators/templates/application/public/icons/thermometer.png +0 -0
- data/res/generators/templates/application/public/icons/toolbox.png +0 -0
- data/res/generators/templates/application/public/icons/trophy.png +0 -0
- data/res/generators/templates/application/public/icons/tshirt.png +0 -0
- data/res/generators/templates/application/public/icons/tv.png +0 -0
- data/res/generators/templates/application/public/icons/umbrella.png +0 -0
- data/res/generators/templates/application/public/icons/walk.png +0 -0
- data/res/generators/templates/application/public/icons/weather.png +0 -0
- data/res/generators/templates/application/public/icons/widescreen.png +0 -0
- data/res/generators/templates/application/public/icons/wineglass.png +0 -0
- data/res/generators/templates/application/public/icons/zap.png +0 -0
- data/res/generators/templates/application/public/js/jquery-1.2.6.min.js +0 -32
- data/res/generators/templates/model/config.rb +0 -3
- data/res/generators/templates/spec/app/spec/webview_spec.rb +0 -5
- data/spec/framework_spec/app/Account/config.rb +0 -59
- data/spec/framework_spec/app/Case/config.rb +0 -3
- data/spec/framework_spec/app/Customer/config.rb +0 -3
- data/spec/framework_spec/app/Product/config.rb +0 -17
@@ -11,188 +11,177 @@
|
|
11
11
|
|
12
12
|
@implementation DateTimePickerDelegate
|
13
13
|
|
14
|
-
@synthesize dateTime, pickerView,
|
14
|
+
@synthesize dateTime, pickerView, parentView, toolbar, barLabel;
|
15
15
|
|
16
16
|
- (void)dealloc
|
17
17
|
{
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
[super dealloc];
|
18
|
+
[pickerView release];
|
19
|
+
[toolbar release];
|
20
|
+
[barLabel release];
|
21
|
+
[dateTime release];
|
22
|
+
[super dealloc];
|
24
23
|
}
|
25
24
|
|
26
|
-
- (void)createPickerBar:(CGRect)
|
25
|
+
- (void)createPickerBar:(CGRect)pickerFrame
|
27
26
|
{
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
27
|
+
self.toolbar = [UIToolbar new];
|
28
|
+
self.toolbar.barStyle = UIBarStyleBlackOpaque;
|
29
|
+
|
30
|
+
// size up the toolbar and set its frame
|
31
|
+
[self.toolbar sizeToFit];
|
32
|
+
CGFloat toolbarHeight = [self.toolbar frame].size.height;
|
33
|
+
|
34
|
+
// TODO: This is an approximate y-origin, figure out why it is off by 3.7
|
35
|
+
CGRect toolbarFrame = CGRectMake(pickerFrame.origin.x,
|
36
|
+
pickerFrame.origin.y - toolbarHeight,
|
37
|
+
pickerFrame.size.width,
|
38
|
+
toolbarHeight);
|
39
|
+
[self.toolbar setFrame:toolbarFrame];
|
40
|
+
|
42
41
|
UIBarButtonItem *cancelItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
42
|
+
target:self
|
43
|
+
action:@selector(cancelAction:)];
|
44
|
+
cancelItem.style = UIBarButtonItemStylePlain;
|
45
|
+
|
46
|
+
// Setup label for toolbar
|
47
|
+
self.barLabel = [[UILabel alloc] initWithFrame:toolbarFrame];
|
48
|
+
barLabel.text = self.dateTime.title;
|
49
|
+
barLabel.textColor = [UIColor whiteColor];
|
50
|
+
barLabel.backgroundColor = [UIColor clearColor];
|
51
|
+
barLabel.textAlignment = UITextAlignmentCenter;
|
53
52
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
53
|
+
UIBarButtonItem *flexItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace
|
54
|
+
target:self action:nil];
|
55
|
+
|
56
|
+
UIBarButtonItem *doneItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
|
57
|
+
target:self
|
58
|
+
action:@selector(dateAction:)];
|
59
|
+
doneItem.style = UIBarButtonItemStylePlain;
|
61
60
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
[doneItem release];
|
61
|
+
[self.toolbar setItems:[NSArray arrayWithObjects: cancelItem, flexItem, doneItem, nil] animated:NO];
|
62
|
+
[cancelItem release];
|
63
|
+
[flexItem release];
|
64
|
+
[doneItem release];
|
67
65
|
}
|
68
66
|
|
69
|
-
- (void)createPicker:(
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
self.pickerView.datePickerMode = UIDatePickerModeDateAndTime;
|
100
|
-
[self.dateFormatter setDateStyle:NSDateFormatterLongStyle];
|
101
|
-
[self.dateFormatter setTimeStyle:NSDateFormatterLongStyle];
|
102
|
-
break;
|
103
|
-
}
|
104
|
-
|
105
|
-
if (self.dateTime.initialTime) {
|
106
|
-
self.pickerView.date = [NSDate dateWithTimeIntervalSince1970:self.dateTime.initialTime];
|
107
|
-
}
|
108
|
-
|
109
|
-
// Add toolbar to view
|
110
|
-
CGRect mainViewBounds = self.pickerView.bounds;
|
111
|
-
[self createPickerBar:mainViewBounds];
|
112
|
-
|
113
|
-
// Add picker to view
|
114
|
-
[window addSubview:self.pickerView];
|
115
|
-
CGRect screenRect = [[UIScreen mainScreen] applicationFrame];
|
116
|
-
CGSize pickerSize = [self.pickerView sizeThatFits:CGSizeZero];
|
117
|
-
CGRect startRect = CGRectMake(0.0,
|
118
|
-
screenRect.origin.y + screenRect.size.height,
|
119
|
-
pickerSize.width, pickerSize.height);
|
120
|
-
self.pickerView.frame = startRect;
|
121
|
-
|
122
|
-
// compute the end frame
|
123
|
-
CGRect pickerRect = CGRectMake(0.0,
|
124
|
-
screenRect.origin.y + screenRect.size.height - pickerSize.height,
|
125
|
-
pickerSize.width,
|
126
|
-
pickerSize.height);
|
67
|
+
- (void)createPicker:(UIView*)parent
|
68
|
+
{
|
69
|
+
self.parentView = parent;
|
70
|
+
CGRect parentFrame = parent.frame;
|
71
|
+
|
72
|
+
// Create the picker
|
73
|
+
if (self.pickerView == nil) {
|
74
|
+
self.pickerView = [[UIDatePicker alloc] initWithFrame:CGRectZero];
|
75
|
+
}
|
76
|
+
|
77
|
+
if (self.pickerView.superview == nil) {
|
78
|
+
self.pickerView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
|
79
|
+
|
80
|
+
// Determine picker type
|
81
|
+
int mode = self.dateTime.format;
|
82
|
+
switch (mode) {
|
83
|
+
case 1:
|
84
|
+
self.pickerView.datePickerMode = UIDatePickerModeDate;
|
85
|
+
break;
|
86
|
+
case 2:
|
87
|
+
self.pickerView.datePickerMode = UIDatePickerModeTime;
|
88
|
+
break;
|
89
|
+
case 0:
|
90
|
+
default:
|
91
|
+
self.pickerView.datePickerMode = UIDatePickerModeDateAndTime;
|
92
|
+
}
|
93
|
+
|
94
|
+
if (self.dateTime.initialTime) {
|
95
|
+
self.pickerView.date = [NSDate dateWithTimeIntervalSince1970:self.dateTime.initialTime];
|
96
|
+
}
|
127
97
|
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
98
|
+
//CGSize pickerSize = CGSizeMake(parentFrame.size.width, parentFrame.size.height/2);
|
99
|
+
CGSize pickerSize = [pickerView sizeThatFits:pickerView.frame.size];
|
100
|
+
pickerSize.width = parentFrame.size.width;
|
101
|
+
if (pickerSize.height > parentFrame.size.height)
|
102
|
+
pickerSize.height = parentFrame.size.height;
|
103
|
+
CGRect pickerFrame = CGRectMake(parentFrame.origin.x,
|
104
|
+
parentFrame.origin.y + parentFrame.size.height - pickerSize.height,
|
105
|
+
pickerSize.width,
|
106
|
+
pickerSize.height);
|
107
|
+
|
108
|
+
// Add toolbar to view
|
109
|
+
[self createPickerBar:pickerFrame];
|
110
|
+
|
111
|
+
// Add picker to view
|
112
|
+
[parentView addSubview:self.pickerView];
|
113
|
+
|
114
|
+
CGRect startFrame = pickerFrame;
|
115
|
+
startFrame.origin.y = parentFrame.origin.y + parentFrame.size.height;
|
116
|
+
self.pickerView.frame = startFrame;
|
117
|
+
[UIView beginAnimations:nil context:NULL];
|
118
|
+
[UIView setAnimationDuration:0.3];
|
119
|
+
|
120
|
+
[UIView setAnimationDelegate:self];
|
121
|
+
[UIView setAnimationDidStopSelector:@selector(slideUpDidStop)];
|
122
|
+
|
123
|
+
self.pickerView.frame = pickerFrame;
|
124
|
+
|
125
|
+
[UIView commitAnimations];
|
126
|
+
}
|
138
127
|
}
|
139
128
|
|
140
129
|
- (void)slideUpDidStop
|
141
130
|
{
|
142
|
-
|
143
|
-
|
144
|
-
|
131
|
+
// the date picker has finished sliding upwards, so add toolbar
|
132
|
+
[self.parentView addSubview:self.toolbar];
|
133
|
+
[self.parentView addSubview:self.barLabel];
|
145
134
|
}
|
146
135
|
|
147
136
|
- (void)slideDownDidStop
|
148
137
|
{
|
149
|
-
|
150
|
-
|
151
|
-
|
138
|
+
// the date picker has finished sliding downwards, so remove it
|
139
|
+
[self.pickerView removeFromSuperview];
|
140
|
+
[self.barLabel removeFromSuperview];
|
152
141
|
}
|
153
142
|
|
154
143
|
- (void)animateDown
|
155
144
|
{
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
145
|
+
CGRect parentFrame = parentView.frame;
|
146
|
+
CGRect endFrame = pickerView.frame;
|
147
|
+
endFrame.origin.y = parentFrame.origin.y + parentFrame.size.height;
|
148
|
+
// start the slide down animation
|
149
|
+
[UIView beginAnimations:nil context:NULL];
|
150
|
+
[UIView setAnimationDuration:0.3];
|
151
|
+
|
152
|
+
// we need to perform some post operations after the animation is complete
|
153
|
+
[UIView setAnimationDelegate:self];
|
154
|
+
[UIView setAnimationDidStopSelector:@selector(slideDownDidStop)];
|
155
|
+
|
156
|
+
// Remove toolbar immediately
|
157
|
+
[self.toolbar removeFromSuperview];
|
158
|
+
self.pickerView.frame = endFrame;
|
159
|
+
[UIView commitAnimations];
|
171
160
|
}
|
172
161
|
|
173
162
|
- (IBAction)cancelAction:(id)sender
|
174
|
-
{
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
163
|
+
{
|
164
|
+
//NSString *message = @"status=cancel";
|
165
|
+
//[self doCallback:message];
|
166
|
+
rho_rhodesapp_callDateTimeCallback(
|
167
|
+
[postUrl cStringUsingEncoding:[NSString defaultCStringEncoding]],
|
168
|
+
0, [self.dateTime.data cStringUsingEncoding:[NSString defaultCStringEncoding]], 1 );
|
169
|
+
[self animateDown];
|
181
170
|
}
|
182
171
|
|
183
172
|
- (IBAction)dateAction:(id)sender
|
184
|
-
{
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
173
|
+
{
|
174
|
+
long ldate = [self.pickerView.date timeIntervalSince1970];
|
175
|
+
//NSMutableString *message = [[NSMutableString alloc] initWithFormat:@"status=ok&result=%@", [NSNumber numberWithLong:ldate]];
|
176
|
+
//if (self.dateTime.data) {
|
177
|
+
// [message appendFormat:@"&opaque=%@", self.dateTime.data];
|
178
|
+
//}
|
179
|
+
//[self doCallback:message];
|
180
|
+
rho_rhodesapp_callDateTimeCallback(
|
181
|
+
[postUrl cStringUsingEncoding:[NSString defaultCStringEncoding]],
|
182
|
+
ldate, [self.dateTime.data cStringUsingEncoding:[NSString defaultCStringEncoding]], 0 );
|
183
|
+
|
184
|
+
[self animateDown];
|
196
185
|
}
|
197
186
|
|
198
187
|
@end
|
@@ -18,13 +18,14 @@
|
|
18
18
|
#import "DateTimePickerDelegate.h"
|
19
19
|
#import "PickImageDelegate.h"
|
20
20
|
|
21
|
-
@interface Rhodes : NSObject <UIApplicationDelegate,
|
21
|
+
@interface Rhodes : NSObject <UIApplicationDelegate,
|
22
22
|
UITabBarControllerDelegate, AVAudioPlayerDelegate>
|
23
23
|
{
|
24
24
|
AppManager *appManager;
|
25
25
|
UIApplication *application;
|
26
26
|
UIWindow *window;
|
27
27
|
AVAudioPlayer *player;
|
28
|
+
NSMutableDictionary *cookies;
|
28
29
|
// Controllers
|
29
30
|
SplashViewController *splashViewController;
|
30
31
|
LogOptionsController* logOptionsController;
|
@@ -38,6 +39,7 @@
|
|
38
39
|
@property (nonatomic, retain) UIWindow *window;
|
39
40
|
@property (nonatomic, retain) AVAudioPlayer *player;
|
40
41
|
@property (nonatomic, retain) id<RhoMainView,NSObject> mainView;
|
42
|
+
@property (nonatomic, retain) NSMutableDictionary *cookies;
|
41
43
|
|
42
44
|
+ (Rhodes*)sharedInstance;
|
43
45
|
|
@@ -55,4 +57,7 @@
|
|
55
57
|
- (void)playStart:(NSString*)fileName mediaType:(NSString*)type;
|
56
58
|
- (void)playStop;
|
57
59
|
|
60
|
+
- (void)setCookie:(NSString*)cookie forUrl:(NSString*)url;
|
61
|
+
- (NSString*)cookie:(NSString*)url;
|
62
|
+
|
58
63
|
@end
|
@@ -17,7 +17,7 @@ void rho_geoimpl_init();
|
|
17
17
|
|
18
18
|
@implementation Rhodes
|
19
19
|
|
20
|
-
@synthesize window, player, mainView;
|
20
|
+
@synthesize window, player, mainView, cookies;
|
21
21
|
|
22
22
|
static Rhodes *instance = NULL;
|
23
23
|
|
@@ -38,7 +38,11 @@ static Rhodes *instance = NULL;
|
|
38
38
|
}
|
39
39
|
|
40
40
|
+ (void)setStatusBarHidden:(BOOL)v {
|
41
|
+
#ifdef __IPHONE_3_2
|
42
|
+
[[Rhodes application] setStatusBarHidden:v withAnimation:UIStatusBarAnimationFade];
|
43
|
+
#else
|
41
44
|
[[Rhodes application] setStatusBarHidden:v animated:YES];
|
45
|
+
#endif
|
42
46
|
[[[[Rhodes sharedInstance] mainView] view] setFrame:[Rhodes applicationFrame]];
|
43
47
|
}
|
44
48
|
|
@@ -132,12 +136,21 @@ static Rhodes *instance = NULL;
|
|
132
136
|
[self performSelectorOnMainThread:@selector(doShowLog) withObject:nil waitUntilDone:NO];
|
133
137
|
}
|
134
138
|
|
139
|
+
- (void)setCookie:(NSString*)cookie forUrl:(NSString*)url {
|
140
|
+
[cookies setObject:cookie forKey:url];
|
141
|
+
}
|
142
|
+
|
143
|
+
- (NSString*)cookie:(NSString*)url {
|
144
|
+
NSString *c = [cookies objectForKey:url];
|
145
|
+
return c;
|
146
|
+
}
|
147
|
+
|
135
148
|
- (void)chooseDateTime:(DateTime*)dateTime {
|
136
149
|
dateTimePickerDelegate.dateTime = dateTime;
|
137
150
|
[dateTimePickerDelegate setPostUrl:dateTime.url];
|
138
151
|
//[self normalizeUrl:dateTime.url]];
|
139
152
|
@try {
|
140
|
-
[dateTimePickerDelegate createPicker:
|
153
|
+
[dateTimePickerDelegate createPicker:[mainView view]];
|
141
154
|
} @catch (NSException* theException) {
|
142
155
|
RAWLOG_ERROR2("startDateTimePickerFromViewController failed(%s): %s", [[theException name] UTF8String], [[theException reason] UTF8String] );
|
143
156
|
}
|
@@ -262,6 +275,8 @@ static Rhodes *instance = NULL;
|
|
262
275
|
self.mainView = [[SimpleMainView alloc] initWithParentView:window frame:[Rhodes applicationFrame]];
|
263
276
|
[self showLoadingPage];
|
264
277
|
|
278
|
+
cookies = [[NSMutableDictionary alloc] initWithCapacity:0];
|
279
|
+
|
265
280
|
// Init controllers
|
266
281
|
logOptionsController = [[LogOptionsController alloc] init];
|
267
282
|
logViewController = [[LogViewController alloc] init];
|
@@ -463,47 +478,6 @@ static Rhodes *instance = NULL;
|
|
463
478
|
rho_rhodesapp_destroy();
|
464
479
|
}
|
465
480
|
|
466
|
-
// UIWebViewDelegate imlementation
|
467
|
-
|
468
|
-
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
|
469
|
-
navigationType:(UIWebViewNavigationType)navigationType {
|
470
|
-
return YES;
|
471
|
-
}
|
472
|
-
|
473
|
-
- (void)webViewDidStartLoad:(UIWebView *)webview {
|
474
|
-
// TODO
|
475
|
-
//[self active];
|
476
|
-
}
|
477
|
-
|
478
|
-
- (void)webViewDidFinishLoad:(UIWebView *)webview {
|
479
|
-
[webview stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitTouchCallout = \"none\";"];
|
480
|
-
// TODO
|
481
|
-
/*
|
482
|
-
[self inactive];
|
483
|
-
|
484
|
-
if ([webView canGoBack]) {
|
485
|
-
backBtn.enabled = YES;
|
486
|
-
} else {
|
487
|
-
backBtn.enabled = NO;
|
488
|
-
}
|
489
|
-
if ([webView canGoForward]) {
|
490
|
-
forwardBtn.enabled = YES;
|
491
|
-
} else {
|
492
|
-
forwardBtn.enabled = NO;
|
493
|
-
}
|
494
|
-
|
495
|
-
//NSString* location = [webview stringByEvaluatingJavaScriptFromString:@"location.href"];
|
496
|
-
//rho_rhodesapp_keeplastvisitedurl( [location cStringUsingEncoding:[NSString defaultCStringEncoding]] );
|
497
|
-
|
498
|
-
if ([actionTarget respondsToSelector:@selector(hideSplash)])
|
499
|
-
[actionTarget performSelectorOnMainThread:@selector(hideSplash) withObject:nil waitUntilDone:NO];
|
500
|
-
*/
|
501
|
-
}
|
502
|
-
|
503
|
-
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
|
504
|
-
// TODO
|
505
|
-
}
|
506
|
-
|
507
481
|
// UITabBarControllerDelegate implementation
|
508
482
|
|
509
483
|
- (void)tabBarController:(UITabBarController *)tabBarController
|
@@ -203,7 +203,7 @@
|
|
203
203
|
webView.multipleTouchEnabled = YES;
|
204
204
|
webView.autoresizesSubviews = YES;
|
205
205
|
webView.clipsToBounds = NO;
|
206
|
-
webView.delegate =
|
206
|
+
webView.delegate = self;
|
207
207
|
|
208
208
|
[root addSubview:webView];
|
209
209
|
|
@@ -291,7 +291,7 @@
|
|
291
291
|
|
292
292
|
- (void)navigate:(NSString *)url tab:(int)index {
|
293
293
|
NSString *escapedUrl = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
|
294
|
-
|
294
|
+
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:escapedUrl]];
|
295
295
|
[webView loadRequest:request];
|
296
296
|
}
|
297
297
|
|
@@ -327,8 +327,7 @@
|
|
327
327
|
}
|
328
328
|
|
329
329
|
- (void)setNavBar:(NSString*)title left:(NSArray*)left right:(NSArray*)right {
|
330
|
-
[
|
331
|
-
self.navbar = nil;
|
330
|
+
[self removeNavBar];
|
332
331
|
|
333
332
|
UINavigationBar *nb = [[UINavigationBar alloc] initWithFrame:CGRectZero];
|
334
333
|
[nb sizeToFit];
|
@@ -338,6 +337,8 @@
|
|
338
337
|
NSArray *btns[] = {left, right};
|
339
338
|
for (int i = 0, lim = sizeof(btns)/sizeof(btns[0]); i < lim; ++i) {
|
340
339
|
NSArray *btn = btns[i];
|
340
|
+
if ([btn count] < 3)
|
341
|
+
continue;
|
341
342
|
NSString *action = [btn objectAtIndex:0];
|
342
343
|
NSString *label = [btn objectAtIndex:1];
|
343
344
|
NSString *icon = [btn objectAtIndex:2];
|
@@ -376,4 +377,53 @@
|
|
376
377
|
self.navbar = nil;
|
377
378
|
}
|
378
379
|
|
380
|
+
// UIWebViewDelegate imlementation
|
381
|
+
|
382
|
+
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
|
383
|
+
navigationType:(UIWebViewNavigationType)navigationType {
|
384
|
+
NSString *url = [[request URL] absoluteString];
|
385
|
+
if (url) {
|
386
|
+
NSString *c = [[Rhodes sharedInstance] cookie:url];
|
387
|
+
if (c) {
|
388
|
+
NSMutableURLRequest *r = (NSMutableURLRequest*)request;
|
389
|
+
[r addValue:c forHTTPHeaderField:@"Cookie"];
|
390
|
+
}
|
391
|
+
}
|
392
|
+
return YES;
|
393
|
+
}
|
394
|
+
|
395
|
+
- (void)webViewDidStartLoad:(UIWebView *)webview {
|
396
|
+
// TODO
|
397
|
+
//[self active];
|
398
|
+
}
|
399
|
+
|
400
|
+
- (void)webViewDidFinishLoad:(UIWebView *)webview {
|
401
|
+
[webview stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitTouchCallout = \"none\";"];
|
402
|
+
// TODO
|
403
|
+
/*
|
404
|
+
[self inactive];
|
405
|
+
|
406
|
+
if ([webView canGoBack]) {
|
407
|
+
backBtn.enabled = YES;
|
408
|
+
} else {
|
409
|
+
backBtn.enabled = NO;
|
410
|
+
}
|
411
|
+
if ([webView canGoForward]) {
|
412
|
+
forwardBtn.enabled = YES;
|
413
|
+
} else {
|
414
|
+
forwardBtn.enabled = NO;
|
415
|
+
}
|
416
|
+
|
417
|
+
//NSString* location = [webview stringByEvaluatingJavaScriptFromString:@"location.href"];
|
418
|
+
//rho_rhodesapp_keeplastvisitedurl( [location cStringUsingEncoding:[NSString defaultCStringEncoding]] );
|
419
|
+
|
420
|
+
if ([actionTarget respondsToSelector:@selector(hideSplash)])
|
421
|
+
[actionTarget performSelectorOnMainThread:@selector(hideSplash) withObject:nil waitUntilDone:NO];
|
422
|
+
*/
|
423
|
+
}
|
424
|
+
|
425
|
+
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
|
426
|
+
// TODO
|
427
|
+
}
|
428
|
+
|
379
429
|
@end
|
@@ -72,6 +72,16 @@
|
|
72
72
|
}
|
73
73
|
@end
|
74
74
|
|
75
|
+
@interface RhoWebViewSetCookieTask : NSObject {}
|
76
|
+
+ (void)run:(NSString*)url :(NSString*)cookie;
|
77
|
+
@end
|
78
|
+
|
79
|
+
@implementation RhoWebViewSetCookieTask
|
80
|
+
+ (void)run:(NSString *)url :(NSString *)cookie {
|
81
|
+
[[Rhodes sharedInstance] setCookie:cookie forUrl:url];
|
82
|
+
}
|
83
|
+
@end
|
84
|
+
|
75
85
|
|
76
86
|
void rho_webview_navigate(const char* url, int index) {
|
77
87
|
id runnable = [RhoWebViewNavigateTask class];
|
@@ -121,3 +131,10 @@ void rho_webview_full_screen_mode(int enable)
|
|
121
131
|
[Rhodes setStatusBarHidden:enable];
|
122
132
|
}
|
123
133
|
|
134
|
+
void rho_webview_set_cookie(const char *u, const char *c)
|
135
|
+
{
|
136
|
+
id runnable = [RhoWebViewSetCookieTask class];
|
137
|
+
NSString *url = [NSString stringWithUTF8String:u];
|
138
|
+
NSString *cookie = [NSString stringWithUTF8String:c];
|
139
|
+
[Rhodes performOnUiThread:runnable arg:url arg:cookie wait:NO];
|
140
|
+
}
|