• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Previous release SDKs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Previous release SDKs


  • Subject: Previous release SDKs
  • From: Jeff LaMarche <email@hidden>
  • Date: Fri, 6 Feb 2004 10:28:21 -0500

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


and here's the export code:

- (void)_exportPanelDidEnd:(NSSavePanel *)sheet
returnCode:(int)returnCode contextInfo:(void *)contextInfo
{
if (returnCode == NSOKButton)
{
NSImage *image = [finalImage image];
[[image TIFFRepresentation] writeToFile:[sheet filename]
atomically:NO];
}
}
- (IBAction)exportFinalImage:(id)sender
{
if ([finalImage image] != nil)
{
NSSavePanel *sp = [NSSavePanel savePanel];
[sp setAllowedFileTypes:[NSArray arrayWithObjects:@"tiff", nil]];
[sp beginSheetForDirectory:nil
file:nil
modalForWindow:window
modalDelegate:self

didEndSelector:@selector(_exportPanelDidEnd:returnCode:contextInfo:)
contextInfo:nil];
}
}

does anyone know what changes I can make to this to make it work on
prior releases, or do I have to target the earlier release in the
project?
_______________________________________________
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.

  • Follow-Ups:
    • Re: Previous release SDKs
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Previous release SDKs
      • From: "Laurent Daudelin" <email@hidden>
  • Prev by Date: Re: Cocoa version of the fstream lib?
  • Next by Date: Entering UniCode
  • Previous by thread: Re: Error on NSTableView
  • Next by thread: Re: Previous release SDKs
  • Index(es):
    • Date
    • Thread