In CakePHP 1.2 a new callback function for components has been introduced: initialize(). I am not sure what its purpose is, as there is already a startup() callback function (which is called after the initialize() function). Anyway, here is how you can define the callback function:

function initialize(&$controller) {
    // do some init stuff
}

Thanks to Dieter@be for mentioning this callback in a comment.