Guest User

Untitled

a guest
Apr 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. //
  2. // Person.h
  3. // P3Scratch
  4. //
  5. // Created by Marcio Valenzuela on 10/30/09.
  6. // Copyright 2009 Personal. All rights reserved.
  7. //
  8.  
  9. #import <Foundation/Foundation.h>
  10.  
  11.  
  12. // In oreder to use [Person copy] you need to implement the NSCopying protocal.
  13. @interface Person : NSObject <NSCopying> {
  14. NSString *screenName;
  15. NSString *realName;
  16. NSURL *imageURL;
  17. //for later on when i get tweets rollin
  18. NSMutableArray *statusUpdates;
  19. NSMutableArray *timeStamps;
  20. NSDictionary *twitterDictionary;
  21. }
  22. // Rule of thumb is strings and objects of literal types should be copied. Not
  23. // required just good practise.
  24. @property(nonatomic,copy)NSString *screenName;
  25. @property(nonatomic,copy)NSString *realName;
  26. @property(nonatomic,copy)NSURL *imageURL;
  27. //for later on when i get tweets rollin
  28. @property(nonatomic,retain)NSMutableArray *statusUpdates;
  29. @property(nonatomic,retain)NSMutableArray *timeStamps;
  30. @property(nonatomic,retain)NSDictionary *twitterDictionary;
  31.  
  32.  
  33. //-(id)initWithScreenName:(NSString*)name;
  34. //-(id)initWithScreenName:(NSString*)name RealName:(NSString*)rname;
  35. -(id)initWithScreenName:(NSString*)name RealName:(NSString*)rname URL:(NSURL*)url;
  36.  
  37. //-(id)initWithObject:(Person*)Object;
  38.  
  39.  
  40.  
  41. @end
Add Comment
Please, Sign In to add comment