Bugs item #752002, was opened at 2003-06-10 18:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=752002&group_id=14534
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Just van Rossum (jvr)
Assigned to: Nobody/Anonymous (nobody)
Summary: "zone" arguments not supported?
Initial Comment:
>>> o = NSObject.alloc().init()
>>> z = o.zone()
2003-06-10 17:57:51.046 python2.3[2733]
PyObjCPointer created: at 0x39e010 of type {_NSZone=}
>>> z
<PyObjCPointer object at 0x3eb128>
>>> o2 = NSObject.allocWithZone_(z).init()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: depythonifying 'struct', got 'PyObjCPointer'
>>> o2 = NSObject.allocWithZone_(None).init()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: depythonifying 'struct', got 'NoneType'
>>>
I wouldn't care a thing about zone's if it wasn't for the fact
that I found an API I'd like to experiment with that is not
available _without_ a zone:
NSBundle.pyobjc_classMethods.loadNibFile_externalNameT
able_withZone_()
I would be happy if it would simply accept None or 0.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=752002&group_id=14534
|