Namespace SE: Why isn't rename working?
I've spent far too long on what I suspect is a tiny omission. I have
a NSE extension that works in most of the basic respects: copy/paste,
folder navigation, etc. My attempts to get rename to work, however,
have so far failed.
I have followed very closely the "How To Support Renaming.." article
at MS.com, not to mention numerous other articles. Here's what I've
got:
- F2 does not seem to trigger any events in my NSE.
- When I single-click a file, the shell requests the SFGAO_CANRENAME
attribute via GetAttributesOf().
- I am keeping SFGAO_CANRENAME set when it comes in through
GetAttributesOf().
- If I select the "Rename" item on my context menu, I get a GCS_VERBA
request. I pass back the string "rename".
- The shell's rename behavior (the little edit field over the
filename, etc.) never occurs and SetNameOf() is never called.
I'm not sure what else I'm missing. Thank you very much in advance
for any help, and please let me know if I can provide any more info!
date: Mon, 14 Apr 2008 09:36:46 -0700 (PDT)
author: Jay Miller