26th October 2009

Text

How we beat MobileMe into submission

What’s the hassel about?

Apple hasn’t updated the DotMac framework for quite a long time. For more than 2 years. Several months after introducing the DotMac to MobileMe transition, there still isn’t any sign of a MobileMe framework to be used by developers, yet Apple’s using its own private MobileMe framework. Here is a howto for using the MobileMe framework.

What will I need?

Of course, you’ll need Xcode tools and ObjC knowledge, apart from that a piece of Apple’s software with the MobileMe framework (e.g. iPhoto) and our FCMobileMe framework which is a wrapper around the header files. The header files were generated by class-dump command line tool.

Steps

Download the FCMobileMe framework and extract the MobileMe framework from some of Apple’s apps and add those to your project and don’t forget adding them to the Copy Frameworks phase (if you’re not familiar with this, google for ‘Xcode adding framework’).

You may now #import anywhere in your project. The usage is similar to the usage of DotMac kit, which you can download from http://connect.apple.com/ – including a manual. What differs mostly are the class names, which now mostly start with ‘MM_’ – so the classes you should concentrate on are MM_MMiDiskSession, MM_MMMemberAccount and MM_MMTransaction.

Why

Why should you use this weird unofficial way when the old DotMac framework actually does work? There are several reasons:

  • The DotMac framework isn’t 64-bit compatible
  • There have been issues on Snow Leopard with the DotMac framework
  • The MobileMe framework seems to be much faster than the DotMac framework

Tagged: fuel collectiveprogrammingsnippetmobile me