discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Portability/Compatability between GNUstep <---> Cocoa...


From: Kazunobu Kuriyama
Subject: Re: Portability/Compatability between GNUstep <---> Cocoa...
Date: Tue, 13 Jan 2004 00:29:22 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1

Richard Frith-Macdonald wrote:


On 12 Jan 2004, at 13:50, Kazunobu Kuriyama wrote:

Recently, I've made some non-trivial programs based on some Cocoa programming books and found some concrete incompatiblilities between GNUstep and Cocoa. When I come across such an incompatibility, I'm always at a loss because GNUstep doesn't provide any preprocessor macro which can be used just for differentiating GNUstep code and Cocoa one. I feel both STRICT_OPENSTEP and NO_GNUSTEP or their
negations are not appropriate for that purpose.


Use STRICT_MACOS_X

OK, I undestand that stuff well. But is this macro defined in Cocoa's headers, too? Otherwise, I feel the instruction above is applied to code written only for GNUstep,
not for code compatible with both GNUstep and Cocoa.

In addition, my question is about real incompatibility, not about any class/method found both in GNUstep and Cocoa. I seek for such a predefined macro that enables a conditional complication like

#if defined SOME_MACRO
   <GNUstep-proper code comes here>
#else
   <Cocoa-proper code comes here>
#endif

In other words, I seek for a macro which differentiate GNUstep headers and Cocoa ones, not a macro which can be used to decide whether GNUstep's Cocoa API is used or not.

- Kazunobu Kuriyama





reply via email to

[Prev in Thread] Current Thread [Next in Thread]