Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Google Chrome...is Windows inside, which may be a strategic error (cnet.com)
11 points by noodle on Sept 16, 2008 | hide | past | favorite | 4 comments


From what I understood Google used WTL as an abstraction layer for the GUI. Meaning in order to create a button they used the WTL CButton (which is a wrapper for a Windows button control).

So to create a Mac control button they'll add a pre processor directive that will call a different code that will generate a Mac button.

Nothing wrong with that...


Yes, indeed.

I have a suspicion that the author doesn't know exactly what he is writing about. If you want to render under Windows, you need to call windows code at the end, don't you?...You can directly call Win32 API, or go through .NET, or use MFC or WTL wrappers. In my opinion WTL was one of the best choices, because the library has good design (derived from C++'s STL) and leads to very efficient code.


The only question remaining then is how difficult is it to make a new mapping from CButton -> new Cocoa button. I know that Carbon was more suited to Windows-style GUIs, but Cocoa seems to be slightly more difficult to use in that way...

Did anyone of you try to port a Win32/MFC/WTL app to Cocoa by adding preprocessor directives? (I didn't, it's a genuine question :-)


the author makes an arguably biased assumption, from the article:

Google is forcing the early adopters to stick with Firefox, rather than experiment with Chrome. The trendsetting crowd is with the Mac and, to a lesser but still significant extent, Linux, not Windows.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: