kdaspeed.blogg.se

Swift key board
Swift key board












swift key board

It’s an AnyObject?, and I want to convert it to a native Array of Dictionary with children, etc. So then I move to Swift, and I get an object pretty much the same way. OK, I understand that now that I’ve seen it. You deserialize it with something like this: set to current application's NSPropertyListSerialization's propertyListWithData:_data options:0 format:(missing value) |error|:(reference)Īssuming you have a valid result, you convert it to an AS object like this: return _object as list In AppleScript this is easy (once you know where to steal the code from):

swift key board

Eventually I find a solution, then I kind of understand, but now when I run up to it in Swift, it’s thrown me for a loop.Īfter I use my stolen, ahem, borrowed code to get a KM macro off the clipboard, it needs to be converted to a native format. It’s shown up in many of the various ways I’ve tried to deal with clipboard data from KM. There’s a concept I’m still struggling with.














Swift key board