/ Published in: Python

Useful for SBApplication scripting bridge.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def makeNumberFromCharCode(code): return (ord(code[0]) << 24) | (ord(code[1]) << 16) | (ord(code[2]) << 8) | ord(code[3]) # In Carbon / Cocoa: # FourCharCode code = 'abcd' # In Python: # code = makeNumberFromCharCode("abcd")
URL: http://www.cocoadev.com/index.pl?FourCharCode
Comments
