• 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: Newbie question about compiler flag for 10.3 and 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question about compiler flag for 10.3 and 10.4


  • Subject: Re: Newbie question about compiler flag for 10.3 and 10.4
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 3 Feb 2006 13:45:10 -0600

On 3 Feb 2006, at 1:44 AM, Norio Ota wrote:

With typecasting to HIObjectRef with 10.3.sdk, ppc version of my app was
built, but if I remain the typecast there, i386 version can't be built.
I got an opposite error to the one I had got without typecast to HIObjectRef.
So I have to build my app separately.

Oh, now I see. Try:

#if __ppc__
	#define HIOR_CAST	(HIObjectRef)
#else
	#define HIOR_CAST
#endif
/*
 * A comment to explain the reason for the #define,
 * and to remember that this workaround can be removed
 * if the PPC side ever becomes 10.4-and-up.
 */
	SetFontInfoForSelection(a, b, c, HIOR_CAST myEventTargetRef);


-- F

 --
Fritz Anderson -- http://www.manoverboard.org/
Consulting Programmer -- http://resume.manoverboard.org/
Step into Xcode, Now Available -- http://six.manoverboard.org/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Newbie question about compiler flag for 10.3 and 10.4
      • From: Steve Checkoway <email@hidden>
References: 
 >Re: Newbie question about compiler flag for 10.3 and 10.4 (From: Norio Ota <email@hidden>)

  • Prev by Date: Re: Code Weirdness
  • Next by Date: A Few Basic Core Data Questions
  • Previous by thread: Re: Newbie question about compiler flag for 10.3 and 10.4
  • Next by thread: Re: Newbie question about compiler flag for 10.3 and 10.4
  • Index(es):
    • Date
    • Thread