Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lower case "k" in Cocoa

I know this is a common convention, but what does the "k" in variable names signify? (i.e. kMaxImageViewSize) I looked in the Apple documentation on Variable names and found no mention of it.

Thanks for answering

like image 223
Corey Floyd Avatar asked Jan 23 '09 06:01

Corey Floyd


2 Answers

That's a general programming notation not specific to Objective-C (i.e. Hungarian Notation) and the "k" stands for "constant".

like image 125
Marc Novakowski Avatar answered Sep 22 '22 23:09

Marc Novakowski


I would presume it means "konstant". :-)

like image 41
Chris Jester-Young Avatar answered Sep 23 '22 23:09

Chris Jester-Young