Share

PyObjC

Tracker: Bugs

5 no transform or sublayerTransform wrapping in CALayer - ID: 2079347
Last Update: Settings changed ( dougfritz )

no transform or sublayerTransform wrapping in CALayer

there is currently no way to set those properties in CALayer

The closest one can do is use setAffineTransform and AffineTransforms can
at times be nonequivalent to CATransforms


doug ( dougfritz ) - 2008-08-27 23:00

5

Deleted

Accepted

Nobody/Anonymous

None

None

Public


Comments ( 3 )

Date: 2009-02-09 21:40
Sender: dougfritz

Thanks was unaware of the other method, and had no way of performing the
operation, not really a bug anymore then.


Date: 2009-02-09 18:21
Sender: pmifek

Ok, of course that was using the trunk version, but the behavior is the
same for the Leopard stock install:

>>> m._.transform = t
Traceback (most recent call last):
File "<console>", line 1, in <module>
File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC/objc/_convenience.py",
line 141, in __setattr__
return self.__object.setValue_forKey_(value, key)
ValueError: NSInvalidArgumentException - Class OC_PythonObject: no such
selector: CATransform3DValue

Otherwise the other method is working even there ( .setTransform_(...),
.transform(), and even the ._.transform selectors).



Date: 2009-02-08 23:37
Sender: pmifek

Works here (stock leopard 10.5.6]:

>>> m
<CALayer: 0x20e91f0>
>>> t = CATransform3DMakeRotation(0.4, 0,0,1)
>>> m.setTransform_(t)
>>> m.setSublayerTransform_(t)

transforms the CALayer m as expected. Truth is that the convenience
m._.XXX methods don't work:

>>> m._.transform
<a7ca6b3f d761c73e 00000000 00000000 d761c7be a7ca6b3f 00000000 00000000
00000000 00000000 0000803f 00000000 00000000 00000000 00000000 0000803f>
>>> m._.transform = t
Traceback (most recent call last):
File "<console>", line 1, in <module>
File
"/Developer3rdp/pyobjc-svnv-trunk/pyobjc-core/Lib/objc/_convenience.py",
line 141, in __setattr__
return self.__object.setValue_forKey_(value, key)
ValueError: NSInvalidArgumentException - Class OC_PythonObject: no such
selector: CATransform3DValue
>>>

from my experience, this is not the only one property where the "._."
access notation doesn't work.


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2009-02-09 21:40 dougfritz
resolution_id None 2009-02-09 21:40 dougfritz
allow_comments 1 2009-02-09 21:40 dougfritz
close_date - 2009-02-09 21:40 dougfritz