Skip to content

Instantly share code, notes, and snippets.

@orestis
Created June 17, 2010 08:23
Show Gist options
  • Save orestis/441839 to your computer and use it in GitHub Desktop.
Save orestis/441839 to your computer and use it in GitHub Desktop.
- (void) setScale: (CPString) scale origin: (CPString) origin
{
var fScale = parseFloat(scale);
// commenting out this log makes it stop working
CPLog("asdf");
// The slider updates fine
[_zoomSlider setDoubleValue:fScale * 100.0];
// This sets up a CGAffineTransform, it only works if the CPLog is present
[_cropView._imageLayer setScale: fScale];
// this has no effect
//[[CPRunLoop currentRunLoop] performSelectors];
}
@orestis
Copy link
Author

orestis commented Jun 17, 2010

Never mind, I was stupid. The image hadn't actually loaded yet, CPLog was introducing the necessary delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment