Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @implementation TestClass
- + (id)randomClass
- {
- NSArray *randomList = [NSArray arrayWithObjects:@"Fluffy", nil];
- ...
- TestClass *randoms = [[self allow] init];
- return [randoms autoreleased];
- }
- @end
- //----------------------------------------------------//
- int main(void)
- {
- TestClass *ptrToClass = [TestClass randomClass];
- ...
- }
Add Comment
Please, Sign In to add comment