void Initialize () { findBarController = new FindBarExtraordinaireController (); IsSwipeEnabled = NSEvent.IsSwipeTrackingFromScrollEventsEnabled; FinishedLoad += (sender, e) => SetupFindBar (MainFrame.FrameView.DocumentView.EnclosingScrollView); findBarController.View.FindTextChanged += (sender, e) => InternalPerformFinderAction (NSTextFinderAction.SetSearchString); findBarController.View.CloseFindPanel += (sender, e) => InternalPerformFinderAction (NSTextFinderAction.HideFindInterface); }
void Initialize () { // The initializations we do here are Lion-specific if (!AppDelegate.IsOnLionOrBetter) return; findBarController = new FindBarExtraordinaireController (); IsSwipeEnabled = NSEvent.IsSwipeTrackingFromScrollEventsEnabled; FinishedLoad += (sender, e) => SetupFindBar (MainFrame.FrameView.DocumentView.EnclosingScrollView); findBarController.View.FindTextChanged += (sender, e) => InternalPerformFinderAction (NSTextFinderAction.SetSearchString); findBarController.View.CloseFindPanel += (sender, e) => InternalPerformFinderAction (NSTextFinderAction.HideFindInterface); }
void Initialize() { // The initializations we do here are Lion-specific if (!AppDelegate.IsOnLionOrBetter) { return; } findBarController = new FindBarExtraordinaireController(); IsSwipeEnabled = NSEvent.IsSwipeTrackingFromScrollEventsEnabled; FinishedLoad += (sender, e) => SetupFindBar(MainFrame.FrameView.DocumentView.EnclosingScrollView); findBarController.View.FindTextChanged += (sender, e) => InternalPerformFinderAction(NSTextFinderAction.SetSearchString); findBarController.View.CloseFindPanel += (sender, e) => InternalPerformFinderAction(NSTextFinderAction.HideFindInterface); }