[CocoaApp isThisTiger]

Shawn Erickson shawnce at gmail.com
Mon Oct 22 17:48:23 PDT 2007


On 10/22/07, David Dunham <dunham at mac.com> wrote:
>
> On 22 Oct 2007, at 10:55, Shawn Erickson wrote:
>
> > Check for the existance/lack of a feature that you need at runtime.
>
> As in respondsToSelector?

...or checking for nil/NULL function pointers or checking for the
existence of a class (NSClassFromString(...) != nil), etc. Again hard
to be specific without knowing what you need to check for which you
haven't yet talked about.

If you cannot check for the specific feature then app kit version may
make sense but IMHO it is best to check for the specific feature if
you can.

<http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/chapter_5_section_1.html>

-Shawn


More information about the MacOSX-dev mailing list