-
Notifications
You must be signed in to change notification settings - Fork 96
Objective-C API improvements #219
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
Conversation
@@ -13,6 +13,9 @@ import Foundation | |||
public class ObjCConfiguration: NSObject { | |||
internal var configuration: Configuration | |||
|
|||
/// Sets a reference to your application. This can be useful in instances | |||
/// where referring back to your application is necessary, such as within plugins | |||
/// or async code. The default value is `nil`. | |||
@objc | |||
public var application: Any? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance this should be a WEAK reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, not necessary. it's a pass through and is already held weak.
case let e as GroupEvent: | ||
return ObjCGroupEvent(event: e) | ||
case let e as AliasEvent: | ||
return ObjCAliasEvent(event: e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a page event that could go here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet.
Uh oh!
There was an error while loading. Please reload this page.