Unique Identifier of a Mac?
问题 On an iPhone I can use [[UIDevice currentDevice] uniqueIdentifier]; to get a string which identifies this device. Is there anything equal in OSX ? I didn't find anything. I just want to identify the Mac which started the application. Can you help me ? 回答1: Apple has a technote on uniquely identifying a mac. Here's a loosely modified version of the code Apple has posted in that technote... don't forget to link your project against IOKit.framework in order to build this: #import <IOKit/IOKitLib