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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to