NSPanel mimic menu behavior

2008-03-17 Thread cai qin
Hi All, I'm using a NSPanel to mimic menu in Tiger these days. I think most of the job has been done except one small problem. What I want to do is that implementing something just behaves like a popUpButton. OK let's get into the point. I got a popUpButton, and I override its cell @implementatio

Carbon Menu in Cocoa app

2008-03-18 Thread cai qin
Hi all, I've searched the list and googled this problem , but I still don't get the exact solution. I have a cocoa app developed in Tiger . Is it possible that Using a carbon menuRef to get App 's mainMenu? I have tried the MenuRef _NSGetCarbonMenu(NSMenu* aMenu); but my menuRef always gets 0x0. Is

View mouse Events

2008-02-29 Thread cai qin
Hi all , I have a question about how view handling events . I have a view in the middle of the window . |=myWindow===| || | |--|| | | || | |