Best way to share a Cocoa object between JNI and Cocoa?

Discussion in 'Mac Programming' started by foidulus, Nov 2, 2008.

  1. foidulus macrumors 6502a

    Jan 15, 2007
    I am writing a JNI library as a partial replacement to QTJava(which Apple is abandoning) for an app we have and it works well. As part of that effort I created a Cocoa class with a bunch of static methods that I would also like to use in a Cocoa GUI app. What is the best way of doing this so that there is only 1 copy of the code around. Is it possible to build an XCode project on the command line(I would like to stick with all command line tools if possible)
  2. MacRumors Guy macrumors member

    Sep 17, 2008
    You can use xcodebuild to build but there is no way to add files to targets through the command line.

Share This Page