Guest User

Untitled

a guest
Apr 23rd, 2018
86
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. TestClass *randoms = [[self allow] init];
  8. return [randoms autoreleased];
  9. }
  10. @end
  11.  
  12.  
  13. //----------------------------------------------------//
  14.  
  15. int main(void)
  16. {
  17. TestClass *ptrToClass = [TestClass randomClass];
  18. ...
  19. }
Add Comment
Please, Sign In to add comment