Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 552
locriani Avatar asked Mar 24 '09 01:03

locriani


2 Answers

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

like image 81
Jarret Hardie Avatar answered Nov 13 '22 13:11

Jarret Hardie


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

like image 33
1800 INFORMATION Avatar answered Nov 13 '22 15:11

1800 INFORMATION