13

Introduction to Cocui

September 16 by Rasmus Andersson, tagged cocoa, cocui, ui and screencast, filed under software

Cocui is a way to quickly create functional Cocoa applications using WebKit. Download and read more at http://github.com/rsms/cocui. You can watch the video in full resolution at Vimeo.


13 comments

  • Avatar
    Andy L September 17

    Hi Rasmus, looks useful — did you check JSTalk out? Looks like you and Gus could join forces…

  • Avatar

    Looks great. A few tips and minor critiques:
    * Cmd-/ in Textmate toggles commented lines on and off.
    * Giving your app the Textmate icon was a bit confusing.
    * Are your JSON en/decoding functions using the native Ecmascript 5 JSON.stringify and JSON.parse methods now supported in Webkit? https://bugs.webkit.org/show_bug.cgi?id=26249

      • Avatar

        • ⌘/ for comments is enabled by the “Source” bundle. I’m pretty sure that ships with TextMate by default, I don’t *think* I installed it separately. Maybe 10.6 menu item search overrides it (I’m still on 10.5)

      • Avatar

        Also, I would use Douglas Crockford’s json2.js, instead of writing your own encoding methods. It’s the reference implemention for the Ecmascript standard.

        http://json.org/json2.js

        Personally, I would ideally replace your own methods with direct calls to JSON.stringify/parse for the sake of standardising around conventions, but if you need to maintain your own methods, you could at least make them wrap json2.js methods directly.

  • Avatar
    Austin Bales December 1

    This is pretty slick, but I’m having trouble accessing the NSApp instance. Specifically I’m trying to create a dock badge, but beyond App.terminate() i’m unable to use any of NSApp’s functionality.

    App.dockTile is not an object or a function.

      • Avatar
        Austin Bales December 13

        Oh, I see. Unfortunately, the reason why Cocui is so appealing is my limited Obj-C/Cocoa knowledge. I guess there’s no avoiding it – I’ll have to learn Cocoa :-/

  • Avatar
    Karl January 5

    Please apologize, cause totally off topic but where do you have your wallpaper from?

  • Avatar
    Abdul Johnson 3 weeks ago

    It is useful to try everything in practice anyway and I like that here it’s always possible to find something new. :)

Comment