I've got Xcode 6 beta 6 and just wanted to add a new Class to my project.
Now, it is File -> New File -> Objective-C File and I have to choose between Empty File, Category, Protocol and Extension. I just want to make a new class (say HelloWorld) which inherits from let's say NSObject
.
Normally the Xcode creates the .m
file and auto-creates the .h
file, but now it has only created the .m
file, named NSObject_HelloWorld.m. No header file has been created and I don't want the naming scheme with Superclass_newClass either.
Did I miss something?
everything is the quite similar to what was before, but here is the procedure in Xcode6 beta6:
choose the New
and File...
or press ⌘N on keyboard:
choose iOS, Source then Cocoa Touch Class:
type the name of your new class (e.g. HelloWorldClass), it is a subset of the NSObject
, and you need to choose the Language as well:
after you saved the files, you can find them in the Project Navigator like I did:
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