• 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
Re: Retaining 10.4 compatibility when using framework methods with newly defined data types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Retaining 10.4 compatibility when using framework methods with newly defined data types? (From: Ryan Poling <email@hidden>)

  • Prev by Date: Retaining 10.4 compatibility when using framework methods with newly defined data types?
  • Next by Date: Solved: problem with buttons in toolbar
  • Previous by thread: Retaining 10.4 compatibility when using framework methods with newly defined data types?
  • Next by thread: Re: Retaining 10.4 compatibility when using framework methods with newly defined data types?
  • Index(es):
    • Date
    • Thread