How to make the Contextual Menu on the tableview's empty rows unable?
How to make the Contextual Menu on the tableview's empty rows unable?
- Subject: How to make the Contextual Menu on the tableview's empty rows unable?
- From: Bright <email@hidden>
- Date: Thu, 23 Jul 2009 11:03:44 +0800 (CST)
Hi everyone:
In the "Controller" class, I used the code as follows to finished the contextual menu
on the table view. And I succeeded.
videoContextualMenu= [[[NSMenualloc] initWithTitle:@"Contextual Menu"] autorelease];
[videoContextualMenuinsertItemWithTitle:@"Delete"action:@selector(deleteVideoFile:) keyEquivalent:@"" atIndex:0];
[videoContextualMenuinsertItemWithTitle:@"Info"action:@selector(infoFile:)
keyEquivalent:@"" atIndex:1];
[movieTablesetMenu:videoContextualMenu];
Now I hope the contextual menu disappears in the empty rows. And it is only valid in the
rows which hold data. But I don't know how to implement the purpose...
Any help greatly appreciated.
Bright
_______________________________________________
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