Please Warn on +[OEPocketsphinxController new]

Home Forums OpenEars Please Warn on +[OEPocketsphinxController new]

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

  • Author
    Posts
  • #1030997
    Coeur
    Participant

    Hello Halle,

    I didn’t notice at first, but a fellow dev was using:

    sphinxController = [OEPocketsphinxController new]

    To prevent this, could you add a warning like:

    + (instancetype) new __attribute__((unavailable(“Do not initialize OEPocketsphinxController directly – use [[OEPocketsphinxController sharedInstance] setActive:TRUE error:nil] instead.”)));

    Also, is there a place for me to make pull requests?

    #1031000
    Halle Winkler
    Politepix

    Hi Coeur,

    Thank you for the suggestion, I’ll give it some consideration for the next version. If you have requests, this is the right place to let me know about them, thanks!

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