Re: Previous release SDKs
Re: Previous release SDKs
- Subject: Re: Previous release SDKs
- From: "Laurent Daudelin" <email@hidden>
- Date: Fri, 06 Feb 2004 11:03:08 -0500
On 06/02/04 10:28, "Jeff LaMarche" <email@hidden> wrote:
>
Apple's got documentation on how to code for releases earlier than the
>
one you're developing on. In the project properties in XCode, they have
>
a screen shot with an earlier release selected. Setting the build
>
settings for an earlier release is easy enough, but what is the .sdk
>
file that they show being selected? I can't find any .sdk files in my
>
Developer folder, or anywhere on the drive. Anyone know what these are
>
and how I get them?
>
>
Also, I have a little App that's working fine on pre 10.3 except for
>
one part - an export to file. It's very simple code that I thought was
>
release-agnostic, but I guess I'm wrong. Here's the console error from
>
10.2:
>
>
>> 2004-02-05 03:55:03.746 AnaglyphMaker[678] *** -[NSSavePanel
>
>> setAllowedFileTypes:]: selector not recognized
>
Jeff,
The SKDs are in /Developer/SDKs. It is, in my opinion, a little tricky to
develop in a later environment and supporting an earlier environment.
For example, I wanted to take advantage of a new delegation method in 10.3.
So, I wrote the method in my object, ran it from Xcode and everything was
fine. When I compiled the app and ran it as a standalone, the delegate
method was not called. I finally discovered that because I have selected the
10.2.7 SDK, the message was not sent to my object! I thought that it was a
little weird since the object responded.
So, I ended up targetting SDK 10.3 and I enclosed the methods that might be
unimplemented in 10.2.x in something like:
if ([anObject respondsToSelector:@selector(newMethod)])
[anObject newMethod];
else
...
-Laurent.
--
========================================================================
Laurent Daudelin Developer, Multifamily, ESO, Fannie Mae
mailto:email@hidden Washington, DC, USA
************************ Usual disclaimers apply ***********************
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.