In the Cocoa and Cocoa Touch APIs what is the meaning of the abbreviation "CG", which is used in a lot of the graphics-related classes such as CGPoint
and CGRect
?
It's based on Apple's API Naming Guidelines.
You should try to choose names that clearly associate each symbol with your framework. For example, consider adding a short prefix to all external symbol names. Prefixes help differentiate the symbols in your framework from those in other frameworks and libraries. They also make it clear to other developers which framework is being used. Typical prefixes include the first couple of letters or an acronym of your framework name. For example, functions in the Core Graphics framework use the prefix “CG”.
It stands for Core Graphics which is the C-based graphics API on iOS. You can read more about core graphics here. CG
is used as a prefix for the essential data structures that are the basic building blocks of the framework.
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