Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // main.c
- #include <CoreFoundation/CoreFoundation.h>
- #import "MYByte.h"
- int main (int argc, const char ** argv) {
- // insert code here...
- CFShow(CFSTR("Hello, World!\n"));
- return 0;
- }
- // MYByte.h
- #import <Cocoa/Cocoa.h>
- @interface MYByte {
- char value;
- }
- - (char) value;
- - (void) setValue: (char) v;
- @end
- // MYByte.m
- #import "MYByte.h"
- @implementation MYByte
- - (char) value {
- return value;
- }
- - (void) setValue: (char)v {
- value = v;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment