2012-08-03 4 views
0

내가 n 레벨 동적 배열을 중첩했습니다. NSOutlineView, 과 바인딩하고 싶습니다. 그러나 4 가지 대리자 메서드를 사용하여 NSOutlineView을 바인딩하는 방법을 알지 못합니다. 당신은 NSTreeController, 일부 링크 및 here 사용할 수 자습서를 사용할 수중첩 된 NSArray NSOutLineView

(
{ 
    id = 3; 
    summary = "req 1"; 
    "sub_requirement" =   
    (
     { 
      id = 16; 
      "sub_requirement" = ""; 
      summary = "sub req 1"; 
     } 
    ); 

}, 
{ 
    id = 5; 
    summary = "req 1-1"; 
    "sub_requirement" =  
    (
     { 
      id = 17; 
      "sub_requirement" = ""; 
      summary = "sub req 1-1"; 
     }, 
     { 

      id = 21; 
      "sub_requirement" = ""; 
      summary = "req 1"; 
     } 
    ); 
}, 
    { 
    id = 7; 
    summary = "req 1 1"; 
    "sub_requirement" =   
    (   
     { 
      approved = 1; 
      budget = 3600; 
      description = ""; 
      estimate = 3600; 
      "fk_feature" = 4; 
      "fk_parent" = 7; 
      "fk_requirementtype" = 1; 
      id = 18; 
      "sub_requirement" = ""; 
      summary = "sub req 11"; 
     } 
    ); 

}, 

{ 
    id = 8; 
    "sub_requirement" = ""; 
    summary = "req 1 2"; 
}, 

{ 
    id = 12; 
    "sub_requirement" = ""; 
    summary = "req 1"; 
}, 

{ 
    id = 14; 
    "sub_requirement" = ""; 
    summary = req1; 
} 
) 
+0

문제의 일부는 두 번째 수준 아래로 NSDictionaries입니다. 항목에 정의 된 순서가 없기 때문에 개요보기가 사전과 잘 어울리지 않습니다. – JeremyP

답변

0

: 같은

중첩 된 배열입니다.