Re: Some more questions on NSOpenPanel
Re: Some more questions on NSOpenPanel
- Subject: Re: Some more questions on NSOpenPanel
- From: "David M. Cotter" <email@hidden>
- Date: Wed, 30 Sep 2009 12:42:10 -0700
If anyone has any clue at all on this, or even some random thing that
i could try to get this to work, i'd be most syked. thanks again.
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 (email@hidden)
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:
This email sent to email@hidden