pandolph/nsuuid — comment on commit 9580203f104dd63e701a2243a87958d465a286cc
File:  line 0
By pandolph:

Just switching it to a method that follows the create rule[1] because otherwise I'd probably forget to release it. It's not really clear how objects should return Core Foundation types they don't own. I first looked at toll-free bridging, but Apple has that locked down.

The *best* solution might be to refactor so NSUUID holds on to a CFUUIDRef, not CFUUIDBytes, so there's no question of ownership.

[1]: https://developer.apple.com/library/mac/#documentation/CoreFOundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html