An Objective C playground for practicing data structures and algorithms.
- Download or clone this repository
- Goto
GGObjectiveCTests/Problems
group - Check the problem link in the top of
GOCxxxTests.m
file - Write Objective C code in Google document
- Paste code into
GOCxxxSolution.m
file - Run
GOCxxxTests.m
file to debug and check your solution
Make a MacOS app with below features
- Display problem and testcase
- Code solution and run test
- Give feedback
- Get solution code from
NSTextField
- Create solution file with solution code
- Use
NSTask
to runClang
command to buildtest.o
with main file, solution file and test file - Use
NSTask
to runtest.o
to get feedback
xcrun: error: cannot be used within an App Sandbox.
In order to run Clang
command, the app need to access the resource out of its sandbox.
There are several ways to solve this problem:
- easy: turn off app sandbox
- medium: add a temporary exception key
- hard: XPC-services
GGObjectiveC is released under the MIT license. See LICENSE
for details.