FROM : Robert Douglas
DATE : Thu Jun 19 20:20:20 2008
My code is getting ugly so I suspect I'm doing something wrong. I'm
trying to hook up menu items in my main menu to actions that I've
defined in my controllers. I have a Core Data doc with a multiple
master-detail view hierarchy, and for testing purposes have buttons
connected to a wide variety of methods. The NSArrayController
subclasses are not in the responder chain so I'm connecting the menu
items to the first responder, catching the action messages in my
document and then dispatch them to the correct controller. That
translates into a lot of simple dispatch code. I could move all the
intelligence to the document level but that strikes me as equally
ugly. Any suggestions?
Thanks,
Rob
DATE : Thu Jun 19 20:20:20 2008
My code is getting ugly so I suspect I'm doing something wrong. I'm
trying to hook up menu items in my main menu to actions that I've
defined in my controllers. I have a Core Data doc with a multiple
master-detail view hierarchy, and for testing purposes have buttons
connected to a wide variety of methods. The NSArrayController
subclasses are not in the responder chain so I'm connecting the menu
items to the first responder, catching the action messages in my
document and then dispatch them to the correct controller. That
translates into a lot of simple dispatch code. I could move all the
intelligence to the document level but that strikes me as equally
ugly. Any suggestions?
Thanks,
Rob
| Related mails | Author | Date |
|---|---|---|
| Robert Douglas | Jun 19, 20:20 | |
| Adam Knight | Jun 19, 21:05 | |
| Cathy Shive | Jun 19, 21:33 | |
| Robert Douglas | Jun 20, 00:19 | |
| Graham Cox | Jun 20, 04:02 | |
| Robert Douglas | Jun 20, 17:01 | |
| Kyle Sluder | Jun 20, 19:57 |






Cocoa mail archive

