| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi all,
I have some problems understanding how menu items are auto-enabled.
Here's what I'm trying to achieve :
- I've got a NSTableView which has a menu connected to it in IB
- this menu has some items that need to be enabled only if the selection in the table is 1 and only 1 item
- the NSTableView is holded inside a NSWindow that can have multiple instances (the content of the table is different in each window).
I'm aware of the -(BOOL)validateMenuItem:(NSMenuItem*)anItem method, but I don't really see where I have to add this method.
Does anybody have some hints ?
Thanks
Jerome
| References: | |
| >Menu items validation woes... (From: Jérome Foucher <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.