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
  • 41,484
  • 20
  • 104
  • 125
gaussblurinc
  • 3,642
  • 9
  • 35
  • 64
  • 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