Closed tonyarnold closed 8 years ago
can you create sample project with the setup ?
Here's a sample project demonstrating the issue: https://dl.dropboxusercontent.com/u/153352/Natalie%20OS%20X%20Test.zip
You can see pretty clearly in master
at natalie.swift#L1154 that UIKit classes are being output regardless of the platform.
I'm not sure how to fix the ambiguous reference to identifier
.
I believe the ambiguity might come from NSViewController
conforming to NSUserInterfaceItemIdentification
, which already has an identifier
property.
Confirmed — renaming identifier
to storyboardIdentifier
in my Storyboards.swift file lets if compile.
There was also an empty protocol that was unfulfilled:
//MARK: - Protocol Implementation
extension NSStoryboardSegue: SegueProtocol {
}
And NSViewController
has no instantiateViewControllerWithIdentifier()
— it is instantiateControllerWithIdentifier()
.
want to prepare PR?
I think this issue is addressed now.
Sorry I didn't get to the PR :(
Two last things:
NSStoryboard
has -instantiateControllerWithIdentifier:
, not instantiateViewControllerWithIdentifier:
Storyboards.Storyboard.instantiateViewController()
methods outputI've tackled the first problem in #77. I think my second issue may be caused by view controllers in my storyboard that have no custom class set yet.
thanks! I just pushed one more change to this, please verify.
Running what's in
master
against my OS X Storyboard, I get references toUIStoryboard
andUIViewController
. Changing these toNSStoryboard
andNSViewController
gives me an error:ambiguous use of identifier
(on line 13).