@drance That’s a mess. I thought this was a header bug that could easily be fixed. Is there something more subtle going on with ARC?
-
-
-
@mjtsai I’d half expect this to come back as behaves correctly. It appears to be just another wonky bridging issue. -
@drance Strange that -[NSData bytes] can work using NS_RETURNS_INNER_POINTER but for actual CF objects you must outsmart the optimizer.
-
-
-
@drance so [layer setColors:[NSArray arrayWithObjects:(id)[[NSColor colorWithDeviceWhite:0.6 alpha:1.0] CGColor]… is ok? -
@fraserhess Yes. In this case UIColor.
-
-
@drance Had the exact same issue (compiler optimising away object), but with weak properties, rather than a local. Ugh. -
@drance Good to know, I had a related issue yesterday with CGGradientCreateWithColors. -
@drance What versions of everything? -
@drance device/sim or debug/release? -
@drance Maybe CGColorRef is an ObjC class on iOS, but still a fake C-based CF-class on Mac (and thus the simulator)?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Matt Drance
Michael Tsai
Fraser Hess
Julian Rex
Olivier Collet
Jonathan Wight
Ken Ferry
Ghoulie Ghost Terror