Cocoa with CodeWarrior?

  • Hi,

    I've to develop a plugin for an old server.app that had been
    developed with CodeWarrior. So I have to use CW (if I can get a copy)
    for development. As I already have a Cocoa-Framework that does most
    of the job, I would love to use it in connection with the plugin. I
    already developed a plugin for a newer version of the server which
    now is mach-o, but the older version is CW-only ... so I have no choice.

    The plugin for the new server uses Carbon-Cocoa-Bridge.. but can I
    use the mechanism in CW?

    Thanks,

    Matthias

    PS: Does anyone knows where I can download a version of CodeWarrior
    (min. req. is Version 8.3) ... I've been told that there was a free
    version. Thx
  • On Sep 9, 2007, at 4:01 AM, Matthias LoCal Schonder wrote:

    > I've to develop a plugin for an old server.app that had been
    > developed with CodeWarrior. So I have to use CW (if I can get a
    > copy) for development.

    You shouldn't have to unless the CW-compiled code uses any C++ code.
    The C and ObjC symbols ought to be the same between CW and GCC.

    > PS: Does anyone knows where I can download a version of CodeWarrior
    > (min. req. is Version 8.3) ... I've been told that there was a free
    > version. Thx

    IIRC there never was a free version. The last version costed US$99
    and was discontinued a long time ago.

    Nick Zitzmann
    <http://www.chronosnet.com/>
  • On 09/09/2007, Nick Zitzmann <nick...> wrote:
    > IIRC there never was a free version. The last version costed US$99
    > and was discontinued a long time ago.

    Hrm, actually I think 10 might have been free for a brief period.

    -- Finlay
  • On Sep 9, 2007, at 4:24 PM, Nick Zitzmann wrote:

    >
    > On Sep 9, 2007, at 4:01 AM, Matthias LoCal Schonder wrote:
    >
    >> I've to develop a plugin for an old server.app that had been
    >> developed with CodeWarrior. So I have to use CW (if I can get a
    >> copy) for development.
    >
    > You shouldn't have to unless the CW-compiled code uses any C++
    > code. The C and ObjC symbols ought to be the same between CW and GCC.

    So long as Matthias' plugin can be in the Mach-O format this would be
    true. But... if you're 'forced' into using CodeWarrior is that
    because the host application can only load PEF based dynamic
    libraries ? If that's true then it's probably best to invest some
    time in writing some sort of 'shim' which is in PEF object format
    (and you'll still need Codewarrior for that) which will use the
    CFBundle API to load a Mach-O based version and the call from the PEF
    entry point to the corresponding Mach-O entry point, and vice-versa.
    There's some pretty old sample code I think on the Apple site which
    explains most of the details.

    Once you've got a thin (but perhaps wide - lot's of entry points can
    make this tedious to write) shim then you can develop the rest of the
    plugin in XCode and so long as you preserve the same C style entry
    points you can use whatever technology you wish (though make sure
    you've reviewed the appropriate tech notes etc. if you're trying to
    embed NSView's and the like in a window created by Carbon API's).

    Andrew 8-)
  • On 9/9/07 12:01 PM, Matthias "LoCal" Schonder said:

    > I've to develop a plugin for an old server.app that had been
    > developed with CodeWarrior. So I have to use CW (if I can get a copy)
    > for development. As I already have a Cocoa-Framework that does most
    > of the job, I would love to use it in connection with the plugin. I
    > already developed a plugin for a newer version of the server which
    > now is mach-o, but the older version is CW-only ... so I have no choice.

    If the plugin needs to be CFM/PEF your only choices are CodeWarrior and MPW.

    > The plugin for the new server uses Carbon-Cocoa-Bridge.. but can I
    > use the mechanism in CW?

    CW can compile 10.2-style Objective-C... that is, no @synchronized and
    later language features.

    > PS: Does anyone knows where I can download a version of CodeWarrior
    > (min. req. is Version 8.3) ... I've been told that there was a free
    > version. Thx

    There is no free version and you can no longer buy it.  Either find a
    used copy somewhere or, well, there is no 'or'... except the grey market...

    --
    ____________________________________________________________
    Sean McBride, B. Eng                <sean...>
    Rogue Research                        www.rogue-research.com
    Mac Software Developer              Montréal, Québec, Canada
  • On Sep 9, 2007, at 6:09 PM, Finlay Dobbie wrote:

    > Hrm, actually I think 10 might have been free for a brief period.

    It was actually the last version of CodeWarrior Learning Edition that
    was, briefly, a free download. Sadly, I missed the boat on that one
    also.

    Charles
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today