-
Notifications
You must be signed in to change notification settings - Fork 90
Conflict with NSViewController in macOS 10.13 / Swift 4 #54
Comments
Thanks a lot for the heads up! So we should rename Update: Plus maybe go Swift and Update 2: Or change the return type to Update 3: Ah, the |
Yes, it should be a possible solution. Alternatively, simply changing @property (nonatomic, readonly) NSString* identifier; to @property (nonatomic, readonly) NSUserInterfaceItemIdentifier identifier; may be a quicker (but dirtier?) way, since |
I'd love to see a swift version of this project! And if you want, I can help translating it to Swift :D |
No, in Swift |
If we replace
Let’s wait for the official release of 4.0 and Xcode 9.0 🙂 |
Alright, thanks in advance! |
@shpakovski How about something like this? It retains type safety and works in both Xcode 8 and 9. |
@lhc70000 @saagarjha Thanks a lot, this should be fixed in 7b656d2! |
Hi @shpakovski, I am late to this one, but I think your original suggestion of renaming The reason is that at run-time we now have two protocols declaring and using the same property, which means that anyone implementing |
Hey Alan! Should the |
I think we should keep it as |
As a follow-up, I do not think As for the name, I am a bit torn here regarding I guess |
Thanks a lot, how about |
Also remove ‘nullable’ since we require this value to be non-null. See cocoabits#54 for rationale.
OK, I went with I did not update the demo project, would appreciate if you can take care of that. |
I will, cheers! |
First of all thanks a lot for this project.
As stated in README, there is a workaround for implementing the property
identifier
in Swift:However in macOS 10.13 SDK and Swift 4, the type of
identifier
fromNSViewController
has been changed fromString?
toNSUserInterfaceItemIdentifier?
, which made the above trick no longer working.The text was updated successfully, but these errors were encountered: