• 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: Cocoa basic data types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa basic data types?


  • Subject: Re: Cocoa basic data types?
  • From: Gregory Weston <email@hidden>
  • Date: Thu, 24 Jan 2002 17:38:25 -0500

On 1/24/02 at 6:52 AM, Manfred Lippert <email@hidden> wrote:

> are there any "low level" portability data types like "Int16", "UInt16" etc.
> somewhere defined in the Cocoa headers? Or can I use the Universal Headers
> with Cocoa? What is the best way to get those types?

Look for <inttypes.h> and/or <stdint.h>. Stdint is an ANSI C99 header that
provides typedefs for integer variants meeting specific criteria. Inttypes is
the pre-standard inspiration for stdint, and I think is retained (with somewhat
lesser duties) in the standard. I know the X dev tools include the typedefs, but
I'm not on an X machine right now so I'm not sure which of these you should look
for specifically. Look for stdint first, I'd guess.

G


  • Follow-Ups:
    • Re: Cocoa basic data types?
      • From: Manfred Lippert <email@hidden>
  • Prev by Date: Category Use
  • Next by Date: Re: reestablishing IBOutlets from initWithCoder ?
  • Previous by thread: Cocoa basic data types?
  • Next by thread: Re: Cocoa basic data types?
  • Index(es):
    • Date
    • Thread