osx - Use C++ as Model Layer in Cocoa application -
i have existing framework command line application built c++, want use model layer particular button in cocoa application. gui application in cocoa , constructed, @ moment buttons don't interact exclusively gui nothing result. have been using swift 4 days , find far convoluted , poorly designed. likewise objective-c makes little sense me.
the majority of programs have written in c++ rely entirely on if
/and
/else
checks , reading/writing files via fstream
. has worked me, have never needed more achieve want each program do, , have been able make complex jobs entirely automated using simple goto
statement (yes know people find them bad practice, have had few issues them , job done). achieve same results in obj-c or swift seems unconditionally require gross amount of excess code. 1 of programs goes 56 lines entire source in c++ on 150 lines 1/5th of total source when rewritting in swift, , couldn't work in obj-c.
all need gui run automated c++ executable in background, , if possible (without excess code) display console output in textview when button clicked. that's needs do, how go linking push-button test
in cocoa gui test.app
function main()
in c++ source file test.cpp
?
Comments
Post a Comment