From the introduction to PyObjC, the Python-Objective-C bridge on Mac OS X:

"As described in Objective-C for PyObjC users the creation of 
Objective-C objects is a two-stage process. To initialize objects, first 
call a class method to allocate the memory (typically alloc), and then 
call an initializer (typically starts with init). Some classes have 
class methods which perform this behind the scenes, especially classes 
that create cached, immutable, or singleton instances."

An example:

myObject = NSObject.alloc().init()

I know Tkinter doesn't require any manual memory allocation of this 
sort. Does wxPython, PyQt, PyGtk require anything like this when 
creating objects?

-- 
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to