[Openmcl-devel] PDFKit crashes

R. Matthew Emerson rme at clozure.com
Wed May 27 23:43:10 PDT 2009

On May 28, 2009, at 2:06 AM, Ron Garret wrote:

> It turns out that I've been forgetting to #/init things all over the
> place but things still mostly work for me.  Am I just getting lucky?
> Should #/init always be called when #/alloc is called?

Yes, either #/init or some more specific initializer, e.g. #/ 
initWithFrame:, etc.

There's also the #/new method, which combines #/alloc and #/init into  
one, but using it is apparently not considered stylish any more.

>  If not, how do
> you know when you need to call #/init?  (Feel free to treat those as
> rhetorical questions.  I'm sure there's a Cocoa memory management
> primer somewhere that I can go read.)


More information about the Openmcl-devel mailing list