Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. child view 1 (0,0,600,900)
  2. child view 2 (601,0,600,900)
  3. child view 3 (0,901,600,900)
  4. child view 4 (601,901,600,900)
  5.  
  6. - (void) drawRect: (NSRect) dirtyRect {
  7. //Just for testing using hardcoded values
  8. [[NSGraphicsContext currentContext] saveGraphicsState];
  9. NSAffineTransform *transform = [[NSAffineTransform alloc] init];
  10. [transform translateXBy:100 yBy:100];
  11. [transform scaleBy:-2.0];
  12. [transform set];
  13. [[NSGraphicsContext currentContext] restoreGraphicsState];
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement