I need to generate a UUID string in some code with ARC enabled.
After doing some research, this is what I came up with:
CFUUIDRef uuid = CFUUIDCreate
That looks correct to me.
You have CFRelease'd uuid, which is your responsibility from the CFUUIDCreate()
uuid
CFUUIDCreate()
And you've transferred ownership of the string to ARC, so the compiler knows to release uuidStr at the appropriate time.
uuidStr