Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Xcode 4, using breakpoints to log or po an object
  2. double currentZoom = [self getZoomScale];
  3.        
  4. currentZoom: @(double)currentZoom@ // this didn't work
  5.  
  6. currentZoom: @(double)[self getZoomScale]@ // also didn't work
  7.        
  8. NSLog(@"%f", currentZoom);
  9.        
  10. p currentZoom
  11.        
  12. NSNumber currentZoomNumber = [NSNumber numberWithDouble:currentZoom];
  13.        
  14. po currentZoomNumber
  15.        
  16. po objectName
  17.        
  18. print (int) intNum
  19. print (float) floatNum