Search code examples
objective-cmacosmacos-carbonuuidcore-foundation

How do I compare two CFUUIDs (Mac OS X Carbon/CoreFoundation)?


How can I compare two CFUUIDRefs from the CoreFoundation Carbon framework in Mac OS X? Is there an easier way to check if two CFUUIDs are equal other than converting them to strings and then comparing those?


Solution

  • A CFUUID is a kind of CFType, so you would use the same CFEqual function you use for any other CF objects.