52

In the stack trace of my iPhone application, I see a call to something called PurpleEventCallback. I wasn't able to find any documentation for it. What is this?

PurpleEventCallback

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
Manav
  • 10,094
  • 6
  • 44
  • 51

2 Answers2

47

Project Purple was the codename for iOS back when it was basically a skunkworks project within Apple. This callback is basically just an event bridge between the CoreFoundation layer (ported from OS X) and the UIKit layer (the next-generation Cocoa framework).

gavinb
  • 19,278
  • 3
  • 45
  • 60
8

Just one more piece of information on PurpleEventCallback.

It's part of Graphics Services. In the case, if you disassemble GraphicsServices framework, you will find the source code of this method.

Victor Ronin
  • 22,758
  • 18
  • 92
  • 184