Just before we put up the dialog, we enable undo, cut, copy, paste,
clear, and select all. these items all have the correct HICommand
assigned (eg: "select all" has kHICommandSelectAll as it's "tag")
Tag? kHICommandSelectAll? This is the cocoa-dev list. ;-)
okaaaaye, well yes:
[nsMenuItem setTag: kHICommandSelectAll];
The Select All item needs a target of First Responder and an action of
-selectAll:.
okay fine.
so just before i put up the OS dialog, i now set the action to
selectAll and the target to nil (first reponder, right?)
[nsMenuItem setAction:@selector(selectAll:)];
[nsMenuItem setTarget:nil];
i also enable the menu item
then i put up my NSPanel (the save dialog)
however the edit menu is completely disabled, specifically the
SelectAll command is still disabled.
what else could i possibly be missing????
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com