• 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: Replacement for GetApplicationEventTarget?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replacement for GetApplicationEventTarget?


  • Subject: Re: Replacement for GetApplicationEventTarget?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Thu, 10 Apr 2008 23:11:49 +0200


Le 10 avr. 08 à 22:05, Nick Zitzmann a écrit :


On Apr 10, 2008, at 1:21 PM, Michael Vannorsdel wrote:
Is there a replacement function for GetApplicationEventTarget? I'm looking for one since this is the only thing I have left that's not 64 bit compatible.


GetApplicationEventTarget() is actually in PPC64 and X86-64 even though it isn't documented as such, and you'll have to supply your own prototype. Good thing; otherwise it would be impossible for 64- bit apps to get some system change notifications... Before anyone asks, yes, I have a bug on this.

Nick Zitzmann
<http://www.chronosnet.com/>

I'm using this function with 64 bits too, and I just want to make you avoid a problem I encounter. Follow Nick's advice and declare your own prototype for 64 bits, else even if GCC only log a warning, the function call will not be correctly generated and your application will crash.


_______________________________________________

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


  • Follow-Ups:
    • Re: Replacement for GetApplicationEventTarget?
      • From: Michael Vannorsdel <email@hidden>
References: 
 >Replacement for GetApplicationEventTarget? (From: Michael Vannorsdel <email@hidden>)
 >Re: Replacement for GetApplicationEventTarget? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Singletons on Leopard with GC
  • Next by Date: Re: Tight loop processing
  • Previous by thread: Re: Replacement for GetApplicationEventTarget?
  • Next by thread: Re: Replacement for GetApplicationEventTarget?
  • Index(es):
    • Date
    • Thread