>
> Anyone have any ideas how I can detect a mouse down event in the menu bar?
Most objects that a user or the system interacts with provide delegate
methods allowing your application to be notified of ahead of a state changes
and after a state changes. The delegation (Observer) design pattern is a
recurring pattern in Cocoa (as it is in Java) and other OOP frameworks
I don't do much more than simple apps with PyObjC preferring ObjC-C++ for my
work but an invaluable Cocoa resource, besides the usual instructional books
like Hillegass 3rd, the dated Anguish, Buck et all, etc., etc., is AppKiDo (
http://homepage.mac.com/aglee/downloads/appkido.html). It's free and
indispensible for me.
In AppKiDo, if you select AppKit and then NSMenu, you'll see a tab for the
delegate methods which provides a good list of what is available.
- daniel
|