Live Writer calls mt_setPostCategories later, the same as MarsEdit? The only difference is it includes the categories here, too? I recommend you do whatever's simplest for supporting both MarsEdit and Live Writer.