What does the 'k' prefix indicate in Apple's APIs?

15.3k Views Asked by At

I've run across many examples of Core Foundation variables named k + someVariableNameHere or k + APILibraryName(2Char) + someVariableNameHere. What does this prefix K indicate?

Examples include:

kGLPFAStereo
kCollectionLockBit
kSetDebugOption

2

There are 2 best solutions below

0
On BEST ANSWER

The k means constant in hungarian notation... see Lower case "k" in Cocoa.

0
On

This is a naming convention from the early days of macintosh programming. It indicates a constant.