krzyzanowskim / Natalie

Natalie - Storyboard Code Generator (for Swift)
http://blog.krzyzanowskim.com/2015/04/15/natalie-storyboard-code-generator/
MIT License
1.17k stars 74 forks source link

Fix OSX storyboardInstantiationInfo #85

Closed phimage closed 8 years ago

phimage commented 8 years ago

like storyboardControllerSignatureType, the method signature for OSX have no View or Window, just Controller

krzyzanowskim commented 8 years ago

but now you have to specify return type because there will be ambiguity - solution with having View or Window as part of function name seems more natural when writing function name to me. isn't it like this?

phimage commented 8 years ago

I am not talking about generated functions signatures, but Cocoa function instantiateControllerWithIdentifier https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSStoryboard_Class/#//apple_ref/occ/instm/NSStoryboard/instantiateControllerWithIdentifier:

in code generated on osx, there are compile issues with unknown method called , instantiateViewControllerWithIdentifier and instantiateWindowControllerWithIdentifier don't exit!!