Placing code in app delegate instead of view controller

Home Forums OpenEars Placing code in app delegate instead of view controller

Viewing 4 posts - 1 through 4 (of 4 total)

  • Author
    Posts
  • #11619
    gregquinn
    Participant

    Am I correct in thinking that I can place openears code into the app delegate instead of view controller code? I’d like to be able to use it on different screens and dynamically load different vocabularies depending on the screen.

    #11620
    Halle Winkler
    Politepix

    Sure, if you like, or for a more standard architecture you can also put it in a root-level view controller and send commands back to it via delegate callbacks from the child controllers. The only thing I don’t support is putting it in a singleton because that usually goes badly due to all of the multithreading.

    #11621
    gregquinn
    Participant

    Cool, thanks Halle.

    #11622
    Halle Winkler
    Politepix

    No problem, this is what I had in mind with the design so I’m happy when it’s used this way.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.