Export to GitHub

jscocoa - issue #21

Structure set : object.origin.x = 4 should work


Posted on Oct 14, 2008 by Helpful Lion

Code like

object.frame.origin.x = newValue

fails. JSCocoa bridges the structure without keeping track of the source object.

newValue will be set in the temporary object resulting from the bridging.

HOWTO fix ?

Comment #1

Posted on Nov 26, 2008 by Helpful Lion

AAAAAAAAAAAArrrrgh. Doesn't seem possible.

Maybe in pure JS, with the … reference type I think, but it doesn't look exposed.

Comment #2

Posted on Jan 5, 2010 by Helpful Lion

doable with jslint !

convert a.frame.origin.x = x to leftassign(a), var frame2 = frame.origin.x = x, a.frame = frame2

Status: Accepted

Labels:
Type-Defect Priority-Medium