views:

994

answers:

3

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

+7  A: 

The k means constant in hungarian notation... see http://stackoverflow.com/questions/472103/lower-case-k-in-cocoa/472118#472118.

Jarret Hardie
+1  A: 

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

1800 INFORMATION
+1  A: 

According to this page from the Apple docs, k just indicates that the value is a constant.

Alnitak