Snowcrash
Snowcrash

Reputation: 86097

Add both .h and .m files in Xcode

When I add a new file in Xcode 6.3.2 I see templates for the .m and .h file but how do you add both at once?

I'm sure there used to be a way of adding both at once.

Upvotes: 4

Views: 3170

Answers (2)

Kevin
Kevin

Reputation: 56059

The option has been moved into the more generic "Cocoa Touch Class" template, which allows you to make the class in either Objective-C or Swift.

Cocoa touch class

Complete the name of your pair of files with the default prefix filled-in for you. Choose the superclass such as NSObject. Choose the Objective-C language. Click the Next button, then choose the folder location where to save your pair of new .h and .m files.

enter image description here

Upvotes: 8

Hancz
Hancz

Reputation: 65

You can do this by add new file and "Cocoa Class"

Upvotes: 3

Related Questions