Re: Retaining 10.4 compatibility when using framework methods with newly defined data types?
Re: Retaining 10.4 compatibility when using framework methods with newly defined data types?
- Subject: Re: Retaining 10.4 compatibility when using framework methods with newly defined data types?
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 3 Dec 2007 18:42:34 -0700
On Dec 3, 2007, at 6:28 PM, Ryan Poling wrote:
I'm trying to use the following method defined in NSURLDownload
which as you can see from the signature is defined to use the new
"NSUInteger" data type. I want to use this method on a program I'll
be distributing for both Tiger and Leopard (10.4 and 10.5), but I'm
not sure what the proper way to do this is.
- (void)download:(NSURLDownload *)download didReceiveDataOfLength:
(NSUInteger)length
Any tips?
If you do not intend for this program to ever be compiled for 64-bit
architectures, then you can just switch NSUInteger to unsigned int
without any problems. Otherwise, you can just define NSUInteger, etc.
for yourself if NSINTEGER_DEFINED is not defined in some header
included by all of your code.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden