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.


    Free memory level access

    Pythonista
    3
    3
    2318
    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.
    • donnieh
      donnieh last edited by

      In Xcode, if I begin a new Obj-C project I usually can find a "memory warning" method that gets called if needed, so I can dump resources.

      Is there a way to monitor low memory with Pythonista? Maybe with objc_util?

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        A good recent discussion on free memory... https://forum.omz-software.com/topic/3844/photos-asset-get_image_data-is-there-a-memory-leak

        1 Reply Last reply Reply Quote 1
        • JonB
          JonB last edited by

          If you mean the low memory warning,see
          https://developer.apple.com/reference/uikit/uiapplicationdelegate/1623063-applicationdidreceivememorywarni?language=objc

          You can swizzle the UIApplication.sharedApplication.delegate's implementaion of this, or you can also register for the UINotification mentioned in the above article.

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