About

Everything that goes on in Robert's life is recorded here. Well, not everything.

Navigation

Home
Photography
Mac Programs
Code Snippets
Blog
Dino Comic
A Rational Dragon Warrior
Sam's Story
Tremorworks
Comic Archive
Solar Air Engine
E-Mail

Current

Book: The entire Xanth series from the beginning

Games: Skyrim, Pokemon Black, Arkham City, FFXIII

Computer: 2006 Intel iMac, Dell Mini 9 Hackintosh, 2.5ghz Quad-Core Hackintosh

While writing code, anything I struggle with (and ultimatily figure out, duh) will go here, so others can learn from my trails

Selection Rectangle:

Put in: 2/18/11

This came from the rewrite of the comic helper. Basically I wanted a CALayer to act as a selection rectangle, so using code from Sketch (the example OS X program) I finally got it right. My biggest issue was using bounds instead of frame.

Multiple CALayer Dragging via 1 selection:

Put in: 2/19/11

Here's how I finally got multiple CALayers to drag simultaniously when I dragged one with the mouse. In other words, after using the selection rectangle code above to capture which elements on the page I wanted to move, move them all and keep them in their relitive positions as the first one moves.