This could give an indication of where they're likely to go with iTunes.
OpenStep was already ported Windows NT at one time ( http://en.wikipedia.org/wiki/File:OPENSTEP_on_Windows_NT.jpg ). They already port other libraries to Windows to support iTunes and Safari. I think this option makes the most sense moving forward if they want to continue building cross-platform applications.
> They already port other libraries to Windows to support iTunes and Safari.
iTunes doesn't use Cocoa/ObjC. It uses the Carbon/C (C++ too?) that was a way to transition between OS/9 and OSX back in the day (You could download the Carbon libraries for OS/9 and a Carbon app would run in OS/9 with them). Safari is Cocoa/ObjC so far as I know, but it's just a wrapper around Webkit for the most part. They could have ported the Windows version of Safari to Carbon, or just ported the parts of the Cocoa libraries that Safari needs (rather than the whole thing).
So.... it looks something like this:
Port X% of Cocoa to Win32 + Port iTunes to Cocoa
Depending on that percentage and the amount of time it would take to port iTunes itself to Cocoa would determine how costly it is (time & money). I realize that you're also saying that porting however much of Cocoa over to Win32(+ Win64?) would help them develop more cross-platform apps, but I don't see this being part of their strategy.Unless you prescribe to the John C. Dvorák line of thinking that Apple is going to go cross-platform, make a way to seamlessly develope Windows/MacOS applications, and then eventually dump MacOS for Windows on Apple machines, I don't think that Apple will leave the galleon that they have for themselves (their product/developer ecosystem). They just use cross-platform apps as a means to an ends... extending gang planks to passing ships and beckoning their passengers to cross over to the Apple side (or at least buy their consumer-devices and get hooked onto those).
My impression was that they ported Safari to window after they saw how much cash Mozilla was making from the embedded search fields.
Probably doesn't hurt to also have one more way for potential Mac customers to dip their toe in the pool...
* It's there to help encourage developers from Windows to write iPhone web apps.
* It's there to help encourage web developers that use Windows to make their pages Safari/WebKit-compatible (because they don't have to own a Mac to test their pages against it).
* It's there to foster 'switchers' by showing people that there are viable applications on the Mac (and that it's not a 'broken' platform). (e.g. the guy that sat behind me when I went to see 'White Noise' that kept complaining to his girlfriend that Michael Keaton was using a Mac and how much faster the audio processing that he -- Michael Keaton's character -- was doing would be going if he was on a PC with Windows)
* It's the vanguard of Apple moving software to Windows to ditch OS X.
* It's the the vanguard of Apple porting their core libraries to Windows to make running Windows apps under OS X native and seamless. (i.e. Apple + WINE or something like that)
* It's their to drive up the number of Safari users to force better web standards.
* Apple has no clue what they are doing.
* Apple was using it as a way to make people excited and not bummed over the announcement that there would be no native API for developers on the iPhone. (Yes. It was released at that Keynote).
Obviously some of these have proven false. As for the rest, it's a toss-up.
http://en.wikipedia.org/wiki/File:OPENSTEP_on_Windows_NT.jpg
Recall that when Apple still only sold PowerPC machines that MacOS X was "leading a secret double life" in the labs in the form of the same x86 port of NeXTstep that was brought forward in tandem with MacOS X as it progressed.
They could be doing the same thing with Cocoa/Win.
There's no huge need to make iTunes 64Bit or Cocoa. Most of the features Apple has added to iTunes in the last 3-4 years are just UI tweaks and some algorithms to make special types of playlists automatically. I don't think they're being constrained by Carbon or will be anytime soon. Being a native Cocoa app would probably improve some of iTunes performance issues but realistically those problems aren't that bad. I just don't see enough room for growth in iTunes to justify all the effort of porting Cocoa to Windows or iTunes to WebKit.
For one thing, only a subset of the Carbon API is important to iTunes. And if it became necessary to fix things (or even break compatibility), they could, because the 64-bit frameworks would be private.
And it's certainly possible to port to Cocoa incrementally. It is also possible to isolate Objective-C implementations behind pure C APIs, so that an abstraction doesn't have to know it's using Cocoa on Mac and something else on Windows.
* Port iTunes to Webkit
WebKit's native plugin system is fantastic for doing this kind of stuff -- it's expressly for embedding native code as elements that are fully interactive with the rest of the document (though it's awful for implementing the average FF extension). They could use WebKit as the majority of the GUI without having to ship very much inspectable JS.
You missed my second bullet.
> though it's awful for implementing the average FF extension
I find that most Firefox extensions are more about modifying the user interface, and less about modifying the content of the page. (i.e. Pearl Crescent Saver, Tab Mix Plus, Download Them All!, Tiny Menu, etc) The big names cover most things you could want to do to the page outside of a Greasemonkey script (Ad Block Plus, NoScript, etc)
* Port Cocoa to Windows and port iTunes to Cococa
* (Gruber's prediction) Port iTunes to be entirely based on Webkit (though I don't know how well that would work as I've never looked into Webkit performance/issues on Windows)
* Port Mac iTunes to Cocoa maintain Windows iTunes in Carbon
* Drop Windows iTunes (not going to happen)
* Port iTunes to iPhone/iPod Touch and drop it on OS X (yea right)
* Port Carbon to 64-bit -- even though it has been stated that they won't in a push to force developers onto Cocoa.
None of those are particularly attractive decisions. Going back on their word and porting Carbon to 64-bit or porting iTunes to be entirely a Webkit view seem to be the only options with the least friction, IMO.
I think that porting Cocoa to Windows would probably be a larger undertaking than it would be worth it, though they may have some portions of Cocoa ported already (IIRC, Safari is Cocoa, but they maybe have only ported what they needed to make Safari work).