Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Playgrounds for Objective-C

Is it at all possible to have Xcode create a .playground file for Objective-C instead of Swift? Are there any available Xcode plugins that allow that?

like image 306
Tarek Avatar asked Sep 29 '14 20:09

Tarek


2 Answers

You can quickly test code snippets using a test case in a new project. Just create a new project and go to the Navigator in the left pane and hit the Test Navigator button. Then follow this guide

enter image description here

The setup code will look a little different than a swift playground, but it still allows you to prototype and play around.

enter image description here

like image 60
slcott Avatar answered Oct 05 '22 07:10

slcott


If the only purpose is to test out Objective-C snippets, i would really recommend you an OS X command line Tool project.

enter image description here

like image 10
TheFuquan Avatar answered Oct 05 '22 09:10

TheFuquan