Cocoa Text System

schmidhauser's Avatar

schmidhauser

05 Mar, 2013 12:21 PM

Hello -

positively in love with Anki but being a very keyboard-centric person I was wondering why my elaborate DefaultKeyBinding.dict is ignored…

I don't think it's a limitation inherent in the framework since other apps made with Qt such as Last.fm, Skype, or VLC work as expected.

(There's a classic exposition by Jacob Rus at http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html; and more recently, see Brett Terpstra: http://brettterpstra.com/2011/08/13/keybinding-madness/.)

  1. Support Staff 1 Posted by Damien Elmes on 05 Mar, 2013 12:38 PM

    Damien Elmes's Avatar

    Is it not working in eg. the browser search bar?

  2. 2 Posted by schmidhauser on 05 Mar, 2013 01:19 PM

    schmidhauser's Avatar

    Nope. I checked again. It isn't working in any text field.

    Related to that by the way, text services are not working either (cf. e.g. http://brettterpstra.com/projects/markdown-service-tools/).

  3. Support Staff 3 Posted by Damien Elmes on 05 Mar, 2013 01:25 PM

    Damien Elmes's Avatar

    If it doesn't work at the moment, it's either a case of more recent
    versions of the toolkit adding support, or those programs using
    separate hacks to make those services available. If you can provide
    information about how those programs implement those extra features,
    I'd be happy to look into it.

  4. 4 Posted by schmidhauser on 05 Mar, 2013 01:43 PM

    schmidhauser's Avatar

    I suspect some of the APIs you're using are Carbon-based i.e. now deprecated by Apple (cf. http://doc.qt.digia.com/qt-maemo/developing-on-mac.html). Can you once try to specify build target to use Cocoa only?

  5. Support Staff 5 Posted by Damien Elmes on 05 Mar, 2013 01:44 PM

    Damien Elmes's Avatar

    Anki uses a Cocoa-only build of Qt.

  6. 6 Posted by schmidhauser on 05 Mar, 2013 01:58 PM

    schmidhauser's Avatar

    Ok.

    I just remember, though, that when Anki (2.0.8) recently crashed I was surprised that the report started with something that looked somewhat Carbon:

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0 com.apple.CoreServices.CarbonCore 0x94443832 UCKeyTranslate + 39
    1 QtGui 0x06866acf 0x6768000 + 1043151
    2 QtGui 0x067a152e 0x6768000 + 234798
    3 QtGui 0x067936be 0x6768000 + 177854
    4 com.apple.AppKit 0x92c1abf1 -[NSWindow sendEvent:] + 7432

    And further the Carbon framework is referenced. I attach a copy of it.

  7. Support Staff 7 Posted by Damien Elmes on 05 Mar, 2013 02:02 PM

    Damien Elmes's Avatar

    Qt4.8 builds with Cocoa as the default AFAIK. It may still be using
    Cocoa in parts; I'm just a user of the library and not a developer of
    it.

  8. 8 Posted by schmidhauser on 05 Mar, 2013 04:33 PM

    schmidhauser's Avatar

    It may have to do with the Qt Webkit.

    Perhaps the following may help: http://qt-project.org/forums/viewthread/23708.

  9. 9 Posted by schmidhauser on 05 Mar, 2013 04:34 PM

    schmidhauser's Avatar

    Incidentally the security certificate of https://help.ankisrs.net is said to be invalid – hostname mismatch.

  10. Support Staff 10 Posted by Damien Elmes on 05 Mar, 2013 04:36 PM

    Damien Elmes's Avatar

    The link should have been http and is fixed now, thanks. As for
    webkit, you said the problem also exists in the search field of the
    browser, so it's not specific to webkit.

  11. 11 Posted by schmidhauser on 05 Mar, 2013 11:29 PM

    schmidhauser's Avatar

    Seems correct…

    As for the security certificate, it's stil invalid. I think it's the asterisk in *.ankisrs.net. I attach a shot.

  12. 12 Posted by Soren Bjornstad on 06 Mar, 2013 02:09 PM

    Soren Bjornstad's Avatar

    There shouldn't be a security certificate, as the new link is not HTTPS. If you need it to be SSL for whatever reason you can access it at https://anki.tenderapp.com.

  13. Damien Elmes closed this discussion on 07 Mar, 2013 02:14 AM.

  14. Damien Elmes re-opened this discussion on 07 Mar, 2013 03:09 AM

  15. Support Staff 13 Posted by Damien Elmes on 07 Mar, 2013 03:09 AM

    Damien Elmes's Avatar

    After thinking about this, I'm going to move the site back to anki.tenderapp.com so everyone can use SSL easily.

  16. Damien Elmes closed this discussion on 07 Mar, 2013 03:09 AM.

  17. Soren Bjornstad re-opened this discussion on 07 Mar, 2013 03:49 AM

  18. 14 Posted by Soren Bjornstad on 07 Mar, 2013 03:49 AM

    Soren Bjornstad's Avatar

    Maybe you could make the subdomain a URL redirect to anki.tenderapp.com?

  19. Support Staff 15 Posted by Damien Elmes on 07 Mar, 2013 04:03 AM

    Damien Elmes's Avatar

    Good idea! I've done that now, though it may take a little while for
    the DNS to update.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac