Code Snippets Objective-C

Short texts Objective-C 🧑‍💻 Code snippets Objective-C ✍️ Reading lists Objective-C 👀

flutter-food-V1

# Miscellaneous *.class *.log *.pyc *.swp .DS_Store .atom/ .buildlog/ .history .svn/ # IntelliJ related *.iml *.ipr *.iws .idea/ # The .vscode folder contains launch configuration and tasks you configure in # VS Code which you may wish to be included in version control, so this line # is commented out by default. #.vscode/ # Flutter/Dart/Pub […]

Movie.h

NS_ASSUME_NONNULL_BEGIN @interface Movie : NSObject { NSString* name; NSInteger year; NSInteger rating; } – (void)setName:(NSString*) movieName; – (void)setYear:(NSInteger) releaseYear; – (void)setRating:(NSInteger) movieRating; -(void)display; @end NS_ASSUME_NONNULL_END

glfw metal example

#define GLFW_INCLUDE_NONE #import #define GLFW_EXPOSE_NATIVE_COCOA #import #import #import #import #include #include #include static void error_callback(int error, const char* description) { fputs(description, stderr); } static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) glfwSetWindowShouldClose(window, GLFW_TRUE); } int main2(void) { id device = MTLCreateSystemDefaultDevice(); if […]