Cocoa Widget Progress

I’ve been hacking on Cocoa widgets for a while now. They are a lot better now than they were even a few weeks ago, but they aren’t quite there yet. Bug 326469 tracks issues we need to resolve before we can make Cocoa widgets default on the trunk. It is not a tracking bug for *all* Cocoa widget issues.

Cocoa Firefox builds are somewhat useable (for messing around, not daily use). They have some crashes lurking, modals and sheet dialogs are messy and not completely functional, and context menus don’t work at all. Other than that the builds aren’t bad.

I think I can finish off most of the crashers and the sheet/modal stuff in the next two weeks. Hopefully by that point Darin will at least be close to landing his event/thread stuff, and hopefully within a week or so after that we can get context menus working. At that point we should be ready to turn Cocoa widgets on for all products on the trunk. Immediately following that we should be ready to go with Cairo drawing code. I hear Vlad has a sweet Quartz backend for Cairo put together, I’m excited to see it in action.

If anyone wants to help with Cocoa widgets this final stretch would be a great time to jump in.

Update: Cocoa Thunderbird actually works now, no worse than Cocoa Firefox.

About these ads

About Josh

E-commerce guru
This entry was posted in Uncategorized. Bookmark the permalink.

16 Responses to Cocoa Widget Progress

  1. ketsugi says:

    Cocoa widgets are all nice and good, but will we ever see native Gnome/KDE widgets on Linux?

  2. Hanspeter says:

    How will these be defined during configure? By setting toolkit=mac (or cocoa-mac based on some of the patches in blockers) in mozconfig or by looking at the build system (ifdef’ing for Darwin, for example)?

  3. Boris says:

    ketsugi, we use GTK2 widgets just like we’re planning to use Cocoa widgets. This is not “widgets like buttons” this is “widgets like window primitives, etc”.

  4. Anonymous says:

    This is really going to be great. However, I rely heavily on being able to style form elements and the fact that this can’t be done in Safari worries me. Will we have control over element styles i.e. background, borders, (that awful focus highlight…)? This is one primary reason I don’t use Safari. If we could manipulate the look AND use Cocoa widgets that would be ideal. Thanks for the hard work.

  5. Hank Mills says:

    Hanspeter, maybe I misunderstand, but if you want to do a firefox build with cocoa widgets add:

    ac_add_options –enable-default-toolkit=cocoa

    to your mozconfig.

  6. SteveP says:

    Hmmm…. That helps a little bit, but what I’d LOVE to see is Firefox on the Mac being to be able to share the Safari keychain items in terms of stored passwords/etc.

  7. skierpage says:

    Mr. Aas/Boris, I put a link to this in Gecko 1.9 Alpha Planning, hope that’s OK.

    SteveP, I think you’re talking about bug 106400, also mentioned in http://wiki.mozilla.org/Firefox:Password_Manager . Password storage in Keychain is mentioned as a Firefox2 feature in the old page http://wiki.mozilla.org/Firefox:1.5_Mac_Migrators but I don’t see it in Bon Echo planning documents.

  8. Boris says:

    skierpage, it’s perfectly fine. That’s what wikis are for! ;)

  9. (a different) Josh says:

    @anonyomous person who posted between Boris & Hank:

    http://webkit.opendarwin.org/blog/?p=51

    Similar changes have previously been checked into svn for buttons and other form controls.

  10. Does this mean Firefox trunk will soon have native or native-looking form controls? Or is that a separate issue from converting from Carbon to Cocoa?

  11. Josh Aas says:

    It does mean we’ll have native-looking controls, though that isn’t what the “Cocoa” in “Cocoa widgets” is all about. Cocoa widgets use the Cocoa API, and they happen to have a native appearance. This is the same stuff Camino has been using for years.

  12. Dylan says:

    Follow up to my earlier post: Jesse’s post above led me to check how Cocoa widgets work in Camino. Yes, they are capable of being styled; it must just be a limitation of Safari that prevents this. This is going to be really great for Firefox on OS X.

  13. Josh, I’m totally excited about this.

    Oh, and here’s my question. Do Cocoa widgets mean that Services are going to be a go for FF3? I don’t use most of ‘em, but the Quicksilver Service is totally bomb, and it’s the one thing I seriously miss when I’m using Carbony apps.

  14. Jacob Rus says:

    Any chance of Cocoa text boxes in Camino/Firefox? Stuff like spell checking, input managers, custom key bindings, etc. are really useful.

  15. AM says:

    Does this mean that we could possibly see the Cocoa widgets in Firefox 2.0??

    It looks like they are almost ready.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s