Thanks a bunch.. I have tried the following on a simple project :
1. Made a new XCode Cocoa Project
2. In the default window added a button
3. Added Objective C controller class which contains referneces for the Button and the ContentView of the mainwindow.
4.Subclass NSButton.
5. Added the method viewDidMoveToWindow() and mouse entered and mouseexited methods to the NSButton subclass.
This is not working... game me some exception. Have I done something wrong here? Do I need to subclass view as well?
Later I subclassed mainWindow's ContentView and added mouseentered and mouseexited functions in it as well... but it did not work either
My code has become untidy after trying many things ... so I'll clean it and post it later.