Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #import <Foundation/Foundation.h>
  2.  
  3. @interface CTContact : NSObject
  4. @property (nonatomic, readonly) NSString *firstName;
  5. @property (nonatomic, readonly) NSString *middleName;
  6. @property (nonatomic, readonly) NSString *lastName;
  7. @end
  8.  
  9. import "CTContact.h"
  10.  
  11. @protocol CTContactProtocol <NSObject>
  12. @property (nonatomic, readwrite) NSString *firstName;
  13. @property (nonatomic, readwrite) NSString *middleName;
  14. @property (nonatomic, readwrite) NSString *lastName;
  15. @end
  16.  
  17. @interface CTContact () <CTContactProtocol>
  18. @end
  19.  
  20. #import "CTContact.h"
  21. #import "CTContactProtocol.h"
  22.  
  23. @implementation CTContact
  24. @synthesize firstName, middleName, lastName;
  25. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement