-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RM Bug: Custom AppDelegate parent doesn't work #116
Comments
I have a fix for this but it unfortunately is waiting on a RubyMotion bug I just discovered. https://gist.github.com/jamonholmgren/5700121 Working on a workaround. |
Workaround implemented in ProMotion 0.7.1. https://github.com/clearsightstudio/ProMotion/blob/master/lib/ProMotion/delegate/delegate_helper.rb class AppDelegate < FakeDelegate
include ProMotion::ScreenTabs
include ProMotion::SplitScreen if NSBundle.mainBundle.infoDictionary["UIDeviceFamily"].include?("2") # Only with iPad
include ProMotion::DelegateHelper
include ProMotion::DelegateNotifications
def on_load(app, options)
open HomeScreen.new(nav_bar: true)
end
end Working repo: |
Confirmed RM bug. |
I'd like to make a mixin the standard way to use ProMotion in the AppDelegate. |
class AppDelegate
include PM::AppDelegate
def on_load(app, options)
end
end I've had trouble when declaring PM::AppDelegate in the past, so I don't know if this will work. |
Fixed in the next release of RM. http://hipbyte.myjetbrains.com/youtrack/issue/RM-159#comment=74-377 |
Can we change the code to no longer have to do this and remove the comments? https://github.com/clearsightstudio/ProMotion/blob/master/lib/ProMotion/delegate/delegate_parent.rb |
Yeah, let's do that in ProMotion 3. |
https://twitter.com/codefriar/status/341595361619636225
Need to allow:
The text was updated successfully, but these errors were encountered: