• 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: CGFloat and 64 Bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGFloat and 64 Bit


  • Subject: Re: CGFloat and 64 Bit
  • From: Clark Cox <email@hidden>
  • Date: Sun, 8 Feb 2009 23:14:26 -0800

On Sun, Feb 8, 2009 at 3:52 AM, Gerriet M. Denkmann
<email@hidden> wrote:
> When I build a Cocoa Project with 32/64 bit, this line gets a warning:
>        NSSize a = NSMakeSize( 11.2, 22.4);
> which went away using:
>        NSSize a = NSMakeSize( (CGFloat)11.2, (CGFloat)22.4);
> Is this the only and correct way to use NSMakeSize() ? Looks kind of ugly.
>
> A somehow related question:
> How does one find out, in which mode (32 vs. 64 bit) an app is running?

#ifdef __LP64__
printf("I'm running 64-bit\n");
#else
printf("I'm running 32-bit\n");
#endif

> Both from inside of an app and from outside (I expected to see something in
> Activity Monitor -> Info but did not find any indication).

Make sure to show the "Kind" column in Activity Monitor.

>
> How does one force a 32/64 bit app to run in 32 or 64 bit?

Applications prefer 64-bit by default. If you want something else, see
the LSArchitecturePriority Info.plist key.

> Probably some line in Info.plist like "prefers 64 bit = YES" but I cannot
> find anything in the documentation.

--
Clark S. Cox III
email@hidden
_______________________________________________

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: 
 >CGFloat and 64 Bit (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: CGFloat and 64 Bit
  • Next by Date: Re: passing argument 1 of 'setContents:' from incompatible pointer type
  • Previous by thread: Re: CGFloat and 64 Bit
  • Next by thread: Re: CGFloat and 64 Bit
  • Index(es):
    • Date
    • Thread