NSDocument deprecated routines and compatibility builds
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