Tuesday, May 1, 2012

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


Source: Tips4all

2 comments:

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

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

    ReplyDelete