JuliaInterop / ObjectiveC.jl

Objective-C embedded in Julia
Other
39 stars 10 forks source link

Unable to load framework: InexactError() #1

Closed kmsquire closed 9 years ago

kmsquire commented 9 years ago

Seems like an Int to Bool conversion stopped working?

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.0-dev+5645 (2015-06-27 21:43 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit b2e69d0* (6 days old master)
|__/                   |  x86_64-apple-darwin14.3.0

julia> using ObjectiveC

julia> ObjectiveC.framework("AVFoundation")
ERROR: InexactError()
 in convert at bool.jl:6
 in loadbundle at /Users/kmsquire/.julia/v0.4/ObjectiveC/src/foundation.jl:31
 in framework at /Users/kmsquire/.julia/v0.4/ObjectiveC/src/foundation.jl:37

I wanted to fool around with this for querying camera capabilities (on a Mac) for VideoIO.jl, since it seems that ffmpeg doesn't have that capability yet.

vtjnash commented 9 years ago

Int -> Bool conversion now must be done explicitly (with x == 0, or x == C_NULL in this case), rather than implicitly with bool(x)