tag:blogger.com,1999:blog-3317681194976291894.post5631083901244948418..comments2023-03-27T00:43:40.769-07:00Comments on Able Pear Software: Creating a GUID or UUID in Objective-CAble Pearhttp://www.blogger.com/profile/10972026256260166617noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3317681194976291894.post-4184138483448999862012-09-28T22:05:41.631-07:002012-09-28T22:05:41.631-07:00Your example code does not seem to work in Xcode 4...Your example code does not seem to work in Xcode 4.4.1, apparently because of ARC.<br /><br />Error:<br />Cast of C pointer type 'CFStringRef' (aka 'const struct _CFString *') to Objective-C pointer type 'NSString *' requires a bridged cast<br /><br />Two fix-its offered. I chose this one:<br />Use CFBridgingRelease call to transfer ownership of a +1 'CFStringRef' Basil.Bourquehttps://www.blogger.com/profile/03457065228238134738noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-79842878957792555932012-02-13T21:11:43.619-08:002012-02-13T21:11:43.619-08:00Great, glad to hear it!Great, glad to hear it!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-26249017638328792672012-02-13T21:00:25.586-08:002012-02-13T21:00:25.586-08:00Thank you so much, sir. Worked perfectly for me. T...Thank you so much, sir. Worked perfectly for me. This is a great article!Dragonhttps://www.blogger.com/profile/05804953955574594076noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-80934852338328267992010-09-30T11:31:23.889-07:002010-09-30T11:31:23.889-07:00Cool, I wasn't aware of that method. I'm ...Cool, I wasn't aware of that method. I'm not sure it would necessarily work correctly for my use case though, but the documentation isn't clear on that.<br /><br />A GUID / UUID is generally based on the network adapter's MAC address, which (barring devices that are impersonating another network interface) is supposed to be unique to each network interface, thus unique across theDon McCaugheyhttps://www.blogger.com/profile/16673164543469346037noreply@blogger.comtag:blogger.com,1999:blog-3317681194976291894.post-61785671238302106842010-09-30T11:07:30.451-07:002010-09-30T11:07:30.451-07:00there's also Cocoa way:
[[NSProcessInfo proces...there's also Cocoa way:<br />[[NSProcessInfo processInfo] globallyUniqueString];Anonymousnoreply@blogger.com