Guest User

Untitled

a guest
Apr 25th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main(void)
  2. {
  3. // Creating an object
  4. Possession *p = [[Possession alloc] init];
  5. [p setPossessionName:[[NSString alloc] initWithString:@"Hey"]];
  6.  
  7. NSMutableArray *items = [[NSMutableArray alloc] init];
  8. items addObject:[p possessionName]];
  9.  
  10. for(i=0; i < [items count]; i++){      
  11.     NSLog(@"%@", [items objectAtIndex:i]);
  12. }
  13.  
  14. return 0;
  15. }
Add Comment
Please, Sign In to add comment