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

Add support for MacOSX storyboards #12

Closed phimage closed 9 years ago

phimage commented 9 years ago

I have added the support of MacOSX storyboards by

I make some test on my two different MacOSX Storyboards (but maybe I don't use all features) and check that there is no output differences after my modification on NatalieExample

krzyzanowskim commented 9 years ago

uderstand. Thank you. Very good work! I was completly unaware of OSX in that regard.

Ill merge this one, and do some refactoring later. I think some parts can be simplified for incrqsed readability for this new dual state.

Wondering how long we'll be able to keep both of these under the same umbrella though :-)

phimage commented 9 years ago

Yes some OS variables like storyboardTypeUnwrap are not clear Maybe sometimes instead of delegate to os:OS (os.XXX), some 'if' or 'switch' could be used directly if os == OS.iOS { println(something) } else if os == OS.MacOS { println(something else) }