« Official Firefox 1.5.0.2 Universal Binaries Unleashed | Main | LineBreak 2.7 Released »

April 18, 2006

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.

Posted by josh at April 18, 2006 9:04 PM

Comments

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

Posted by: ketsugi at April 19, 2006 2:29 AM

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)?

Posted by: Hanspeter at April 19, 2006 4:35 AM

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".

Posted by: Boris at April 19, 2006 9:59 AM

Josh, you want to toss the relevant info into http://wiki.mozilla.org/Gecko_1.9_Alpha_Planning#Feature_Status ?

Posted by: Boris at April 19, 2006 10:00 AM

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.

Posted by: at April 19, 2006 11:39 AM

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.

Posted by: Hank Mills at April 19, 2006 12:27 PM

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.

Posted by: SteveP at April 19, 2006 2:28 PM

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.

Posted by: skierpage at April 19, 2006 2:56 PM

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

Posted by: Boris at April 19, 2006 4:22 PM

@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.

Posted by: (a different) Josh at April 19, 2006 9:00 PM

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?

Posted by: Jesse Ruderman at April 20, 2006 5:20 AM

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.

Posted by: Josh Aas at April 20, 2006 8:53 AM

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.

Posted by: Dylan at April 20, 2006 11:54 AM

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.

Posted by: Nick Fagerlund at April 22, 2006 11:30 PM

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

Posted by: Jacob Rus at May 4, 2006 1:04 AM

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

It looks like they are almost ready.

Posted by: AM at May 4, 2006 6:00 PM

I can't believe it, my co-worker just bought a car for $22681. Isn't that crazy!

Posted by: Betsy Markum at May 24, 2006 12:27 AM

Super site ! Bravo au webmaster qui a su rendre le site tres interressant.Continue comme ca ;)

Posted by: imitrex at June 16, 2006 3:54 AM

education16.html

Posted by: sexual-health at June 18, 2006 5:41 AM

dyjceqr glaw csayhbnv rveu bjfns kxbhncf atvlrimbs

Posted by: bdtxreoz rihsuntz at August 7, 2006 9:05 PM

ervwewecv

Posted by: violet at August 11, 2006 8:01 PM

What a great blog!

Posted by: andrew at August 24, 2006 5:45 AM

thank you

Posted by: andrew at August 24, 2006 6:32 AM

nice blog!

Posted by: andrew at August 24, 2006 9:29 AM

nice blog!

Posted by: andrew at August 24, 2006 9:29 AM

queen mary 's horse sex guy having sex with horse

Posted by: Pxym at September 27, 2006 10:28 AM

queen mary 's horse sex guy having sex with horse

Posted by: Pxym at September 27, 2006 10:29 AM

queen mary 's horse sex guy having sex with horse

Posted by: Pxym at September 27, 2006 10:29 AM

pussy fuck suck dick cum father fucks young daughter

Posted by: Qapjarpcv at October 1, 2006 7:04 AM

pussy fuck suck dick cum father fucks young daughter

Posted by: Qapjarpcv at October 1, 2006 7:06 AM

pussy fuck suck dick cum father fucks young daughter

Posted by: Qapjarpcv at October 1, 2006 7:07 AM

Hello all

Posted by: hydrocodone online at October 9, 2006 3:01 AM

anal sex stories sex with misty from pokemon

Posted by: Otpma at October 9, 2006 4:22 AM

anal sex stories sex with misty from pokemon

Posted by: Otpma at October 9, 2006 4:22 AM

There are a number of payday loan companies saying that they are the best in payday loan industry, we say nothing, we just get you APPROVED for a payday loan.

Posted by: payday loan at October 30, 2006 5:39 AM

There are a number of payday loan companies saying that they are the best in payday loan industry, we say nothing, we just get you APPROVED for a payday loan.

Posted by: payday loan at October 30, 2006 5:41 AM

tqjzxtm

Posted by: Juan Beam at October 31, 2006 8:57 PM

Colombia's vice president is "baffled" by Kate Moss's success following cocaine allegations...

Posted by: Izaiah Couture at November 23, 2006 12:37 AM

The first stage of a £150m investment in regional museums is praised for boosting visitor numbers...

Posted by: Brett Crooks at November 23, 2006 7:24 AM

The first stage of a £150m investment in regional museums is praised for boosting visitor numbers...

Posted by: Brett Crooks at November 23, 2006 7:26 AM

Madonna says she may adopt another child from abroad following her proposed adoption of a Malawian boy...

Posted by: Duncan Rivera at November 24, 2006 2:43 AM

Madonna says she may adopt another child from abroad following her proposed adoption of a Malawian boy...

Posted by: Duncan Rivera at November 24, 2006 2:46 AM

TV host Oprah Winfrey gives audience members $1,000 (£526) each to donate to a charitable cause...

Posted by: Spencer Pak at November 24, 2006 9:23 PM

TV host Oprah Winfrey gives audience members $1,000 (£526) each to donate to a charitable cause...

Posted by: Spencer Pak at November 24, 2006 9:24 PM

Veteran actor William Franklyn, known for voicing the 1960s Schweppes TV adverts, dies aged 81...

Posted by: Yosef Whitworth at November 26, 2006 3:48 AM