• 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
Carbon removal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Carbon removal


  • Subject: Carbon removal
  • From: Chris Paveglio <email@hidden>
  • Date: Wed, 03 Jul 2013 10:23:59 -0700 (PDT)

I've got a project that I am working with, that I did not create. I am trying to understand it and I would like to remove the Carbon framework dependencies in it. I don't know anything about Carbon. Is there a good resource to read up on it? Are there replacement methods in other frameworks to replace some of the Carbon apis? I'm not really sure where to start.

For example, here's a function I will need to replace, where could I find any of the same calls or another function to replace OSStatus?

pascal OSStatus AppEventHandler( EventHandlerCallRef inCallRef, EventRef inEvent, void* controller ) 
{
  OSStatusstatus = eventNotHandledErr;
  
  if(GetEventClass(inEvent) == kEventClassApplication) 
  {
    UInt32 mode = 0;
    (void) GetEventParameter(inEvent,
                             kEventParamSystemUIMode,
                             typeUInt32,
                             NULL,
                             sizeof(UInt32),
                             NULL,
                             &mode);
    [controller modeDidChange:mode];
    status = noErr;
  }
  return status;
}
------
and later
------
InstallApplicationEventHandler( NewEventHandlerUPP( AppEventHandler),
                                 GetEventTypeCount( sAppEvents ),
                                 sAppEvents, self, NULL );
-------
Thanks for any help.
Chris
_______________________________________________

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: Carbon removal
      • From: Uli Kusterer <email@hidden>
    • Re: Carbon removal
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: iOS OpenGL ES woes
  • Next by Date: Re: iOS OpenGL ES woes
  • Previous by thread: How to remove NSUserNotification from NotificationCenter
  • Next by thread: Re: Carbon removal
  • Index(es):
    • Date
    • Thread