| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
So given an application with a custom window which can respond to kCommandFoo and kCommandBar following this example my window should enable kCommandFoo and kCommandBar when appropriate. The application can always disable them so they aren't enabled if a window which can handle them is around.
However, this doesn't appear to scale well.
If my window can handle 100 commands, then the application also has to know about those specific 100 command ids so it can disable them if the event percolates up to the application.
Am I missing something in how this event should be handled conceptually? Is there a better way to deal with this situation?
| References: | |
| >Correct way to handle kEventCommandUpdateStatus? (From: Jim Correia <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.