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
The k means constant in hungarian notation... see Lower case "k" in Cocoa.
This is a naming convention from the early days of macintosh programming. It indicates a constant.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With