Re: AVMetadataItem key

2015-10-07 Thread Jan E. Schotsman
On Oct 5, 2015, at 12:39 AM, Fritz Anderson wrote: On Oct 1, 2015, at 3:59 PM, Jan E. Schotsman wrote: I have an AVMetaDataItem with key = protocol? Int32(1851878757) as shown by the debugger How can can extract the value 1851878757 which is the four char code I need? Using Swift 2 My

Re: AVMetadataItem key

2015-10-05 Thread Fritz Anderson
This is embarrassing… On 4 Oct 2015, at 5:39 PM, Fritz Anderson wrote: > > func OSTypeFor(code: UInt32, >encoding: UInt = NSMacOSRomanStringEncoding) >throws -> String > { >let codePtr = UnsafeMutablePointer.alloc(1) >codePtr.initializeFrom([code]) >defer { codePtr.destroy()

Re: AVMetadataItem key

2015-10-04 Thread Fritz Anderson
On Oct 1, 2015, at 3:59 PM, Jan E. Schotsman wrote: > > Sorry for this stupid question but I just don't know how to do this. > > I have an AVMetaDataItem with > key = protocol? Int32(1851878757) > as shown by the debugger > > How can can extract the value 1851878757 which is the four char code

AVMetadataItem key

2015-10-01 Thread Jan E. Schotsman
Sorry for this stupid question but I just don't know how to do this. I have an AVMetaDataItem with key = protocol? Int32(1851878757) as shown by the debugger How can can extract the value 1851878757 which is the four char code I need? Using Swift 2 TIA, Jan E