- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
// 禁用粘貼功能
if (action == @selector(paste:))
return NO;
// 禁用選擇功能
if (action == @selector(select:))
return NO;
// 禁用全選功能
if (action == @selector(selectAll:))
return NO;
return [super canPerformAction:action withSender:sender];