omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Strange problem with objc-util and MPMediaQuery

    Pythonista
    2
    3
    2290
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chibill
      chibill last edited by

      I am having a strange problem with objc-util on my ipad mini 2. (Or is it ipad 2 mini?)

      And actually its any class starting with MP that is giving an error. The error is always there is no Objective-C class named '(Name of class)'

      Here is a picture of the error from running the example. http://imgur.com/g8Q3sYH

      Any idea what the problem is? It does not affect any other ObjC examples.

      1 Reply Last reply Reply Quote 0
      • shaun-h
        shaun-h last edited by ccc

        I'm pretty sure you problem is the MediaPlayer framework isn't linked in 2.0

        The fix is to add this line before the call that breaks

        NSBundle.bundleWithPath_('/System/Library/Frameworks/MediaPlayer.framework').load()
        
        1 Reply Last reply Reply Quote 0
        • chibill
          chibill last edited by

          Yeah. Thanks. Strange part is it works on my brothers iPad 2Air. (Or is it IPad Air 2) without that.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors