2011-10-31 32 views

回答

0

只是把一个函数变成NSOutlineView

- (BOOL)control:(NSControl *)control textShouldEndEditing:(NSText *)fieldEditor 
{ 
    // for example that is checked that node text is not empty 
    if ([[fieldEditor string] length] == 0) 
    { 
     return NO; 
    } 
    else 
    { 
     return YES; 
    } 
} 
的代表
相关问题