1

Can i hide or prevent [[Foo alloc] init] from being used in code outside the Foo class?

I want only code to use a custom createFooObject, not the alloc/init idiom.

Is it possible to hide alloc/init in class?

Joe
  • 40,031
  • 18
  • 107
  • 123
gaussblurinc
  • 3,566
  • 9
  • 33
  • 63
  • 3
    [See this question](http://stackoverflow.com/questions/195078/is-it-possible-to-make-the-init-method-private-in-objective-c) – bbarnhart Feb 15 '13 at 14:14

0 Answers0