Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

What is class prefix in Xcode

Hello



What is class prefix in Xcode ????
do i need to fill this box before publishing my App !!!

if yes what should i write in that box ?


Thanks

MacBook, Mac OS X (10.7.2), and Windows 7 64bit

Posted on Apr 21, 2012 10:43 PM

Reply
Question marked as Best reply

Posted on Apr 22, 2012 11:43 AM

The class prefix is a prefix for class files Xcode generates when you create a project or class file. An example of a class prefix is the NS in Cocoa classes. If you enter a class prefix of XYZ and create an Objective-C class called MyClass, the name of the class would be the following:


XYZMyClass


You do not need to fill in a class prefix to publish an app. The main point of using class prefixes is to avoid name conflicts between the classes you write and the classes in external frameworks and libraries.

4 replies
Question marked as Best reply

Apr 22, 2012 11:43 AM in response to ahmedalsurmi

The class prefix is a prefix for class files Xcode generates when you create a project or class file. An example of a class prefix is the NS in Cocoa classes. If you enter a class prefix of XYZ and create an Objective-C class called MyClass, the name of the class would be the following:


XYZMyClass


You do not need to fill in a class prefix to publish an app. The main point of using class prefixes is to avoid name conflicts between the classes you write and the classes in external frameworks and libraries.

What is class prefix in Xcode

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.