• 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
NSDocument deprecated routines and compatibility builds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument deprecated routines and compatibility builds


  • Subject: NSDocument deprecated routines and compatibility builds
  • From: Robert Clair <email@hidden>
  • Date: Wed, 10 May 2006 10:11:01 -0400

I looked at the docs and the archives and this still isn't clear to me.

I'm doing a Universal build with the ppc part using the 10.3 SDK's.

   - (NSData* )dataRepresentationOfType:(NSString* )type

is deprecated. If I do:

#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4

- (NSData *)dataOfType:(NSString *)type error:(NSError **)outError
{
    ...
}

#else

- (NSData* )dataRepresentationOfType:(NSString* )type
{
  ...
}

everything is fine for now. The i386 part is fine for the future. But what happens if the deprecated routine disappears in the next OS ? The ppc version won't run.

Do I just put both of them in without the #ifdef assuming the older one gets called until it disappears and then the new one gets called ?

TIA

...Bob Clair
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSDocument deprecated routines and compatibility builds
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: .xcdatamodel tool?
  • Next by Date: Re: Quit menu item undimming itself?!
  • Previous by thread: Re: .xcdatamodel tool?
  • Next by thread: Re: NSDocument deprecated routines and compatibility builds
  • Index(es):
    • Date
    • Thread