Re: Getting back into MacOSX development after some time off

Uli Kusterer <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On 17.11.2009, at 10:00, Izidor Jerebic wrote:
> Interesting. What are those "warnings I need" you don't get?


I'm not Matt, but the issue he's probably referring to is calling methods that are only available in the newer OS versions. The compiler/linker will not tell you that you're calling one of those, and that you need to add checks or fallbacks for the older OS versions you support.

OTOH, by using the oldest system version you support as the SDK, you *can't* call any newer APIs by accident, as they're simply not defined. If you really want to use newer API, you have to jump through a few hoops, of course (put new-OS-specific code in a loadable bundle, declare the methods yourself and look them up manually, or whatever else is appropriate in your case). The difference is, you're making the compatibility-breaking calls explicit.

Cheers,
-- Uli Kusterer
"The witnesses of TeachText are everywhere..."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.