2011-10-31 58 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; 
    } 
} 
的代表
相關問題