I'm using SA_OAuthTwitterEngine. It's basically a wrapper for the MGTwitterEngine. I would like to create a single instance of the engine and then use it throughout my app.
I created a singleton instance of my own TwitterEngineInstance class that holds the engine instance, but the engine can only be instantiated with a single delegate. There are no built in methods to overwrite the delegate in the MGTwitterEngine so I feel like I'm using it wrong.
I have to change delegates when I change pages. I have a main feed page which works fine, but then I click to my Direct Messages page, I have to pass that view controller as the delegate but there's no easy way to do this. Right now I'm destroying my singleton and then re-instantiating it with my new delegate which works, but I have to login again to twitter.
I'd rather not build a method in the MGTwitterEngine that swaps delegates. I feel like the creator would've stuck that in there if I were viewing things right, but I think I'm seeing things wrong. Anyone have any experience with this?
Thanks!
I created a singleton instance of my own TwitterEngineInstance class that holds the engine instance, but the engine can only be instantiated with a single delegate. There are no built in methods to overwrite the delegate in the MGTwitterEngine so I feel like I'm using it wrong.
I have to change delegates when I change pages. I have a main feed page which works fine, but then I click to my Direct Messages page, I have to pass that view controller as the delegate but there's no easy way to do this. Right now I'm destroying my singleton and then re-instantiating it with my new delegate which works, but I have to login again to twitter.
I'd rather not build a method in the MGTwitterEngine that swaps delegates. I feel like the creator would've stuck that in there if I were viewing things right, but I think I'm seeing things wrong. Anyone have any experience with this?
Thanks!