I added a patch to the Cocoa specific bug 3792. I don't really know
my way around the emacs internals, so if a NSEmacs expert could look
it over, fix it up, and commit it that would be great. It's probably
not implemented very well (and hasn't been tested on 10.4), so
completely ignoring the patch and fixing it a better way will not hurt
my feelings any.