Exemplo n.º 1
0
 public void BeginSelectingCandidate(NSCandidateListTouchBarItem anItem, nint index)
 {
     if (index == nint.MaxValue)
     {
         Console.WriteLine("BeginSelectingCandidate: None");
     }
     else
     {
         Console.WriteLine("BeginSelectingCandidate {0} at {1}", anItem.Candidates [index], index);
     }
 }
Exemplo n.º 2
0
 public override NSTouchBarItem MakeItem(NSTouchBar touchBar, string identifier)
 {
     switch (ParseId(identifier))
     {
     case 0: {
         canidateItem          = new NSCandidateListTouchBarItem(identifier);
         canidateItem.Delegate = this;
         canidateItem.SetCandidates(new NSString [] { (NSString)"Hello", (NSString)"World", (NSString)"Touch" },
                                    new NSRange(0, 3), "");
         return(canidateItem);
     }
     }
     return(null);
 }
Exemplo n.º 3
0
 public void EndSelectingCandidate(NSCandidateListTouchBarItem anItem, nint index)
 {
     Console.WriteLine("EndSelectingCandidate {0} at {1}", anItem.Candidates [index], index);
 }
Exemplo n.º 4
0
 public void ChangedCandidateListVisibility(NSCandidateListTouchBarItem anItem, bool isVisible)
 {
     Console.WriteLine("ChangedCandidateListVisibility {0}", isVisible);
 }
Exemplo n.º 5
0
 public void ChangeSelectionFromCandidate(NSCandidateListTouchBarItem anItem, nint previousIndex, nint index)
 {
     // previousIndex and index always appear to return NSNotFound (nint.MaxValue) in this use case
     Console.WriteLine("ChangeSelectionFromCandidate");
 }