Guest User

Untitled

a guest
Apr 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @implementation TestClass
  2.  
  3. + (id)randomClass
  4. {
  5. NSArray *randomList = [NSArray arrayWithObjects:@"Fluffy", nil];
  6.  
  7. ...
  8.  
  9. TestClass *randoms = [[self allow] init];
  10. return [randoms autoreleased];
  11. }
  12. @end
  13.  
  14.  
  15. //----------------------------------------------------//
  16.  
  17. int main(void)
  18. {
  19. TestClass *ptrToClass = [TestClass randomClass];
  20. ...
  21. }
Add Comment
Please, Sign In to add comment