Created
June 17, 2010 08:23
-
-
Save orestis/441839 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind, I was stupid. The image hadn't actually loaded yet, CPLog was introducing the necessary delay.