CocoaDev

Edit AllPages

SCTSearchManager is a class in Apple’s Shortcut.framework. It’s used to control the Help menu introduced in Mac OS 10.5.

For more info see ProgramaticallyShowMenuInMenuBar. –SaileshAgrawal


/*

#import “NSResponder.h”

@class NSButton, NSConditionLock, NSImageView, NSMutableArray, NSMutableSet, NSSearchField, NSStatusItem, NSString, NSTableView, NSTextField, NSTimer, NSView, NSWindow, SCTGRL, SCTGRLIndex, SCTMenuView;

@interface SCTSearchManager : NSResponder { SCTMenuView *mSearchView; NSTextField *mSearchTitle; NSStatusItem *mStatusItem; NSButton *mSCTIconView; NSTableView *mResultsTable; NSSearchField *mSearchField; NSView *mSearchFieldView; NSImageView *mBackgroundView; SCTGRLIndex *mGRLIndex; NSMutableSet *mSearchDataSources; NSMutableArray *mGRLSearchResults; NSMutableArray *mCustomSearchResults; NSMutableArray *mHelpSearchResults; int mSelectedResult; BOOL mSelectionInProgress; BOOL mIgnoreMenuClosedEvents; BOOL mHelpMenuIsInSearchMode; SCTGRL *mGRLToBeShown; SCTGRL *mShownGRL; SCTGRL *mPrevShownGRL; NSWindow *mSavedKeyWindow; NSTimer *mClearSearchTimer; unsigned int mLastNavigationDirection; struct OpaqueEventHandlerRef *mCloseMenuHandler; BOOL mDebugMode; float mSearchFrameWidth; int mThreadCount; NSConditionLock *mSearchThreadLock; BOOL mResetSearch; NSString *mSearchString; BOOL mTerminateSearchThread; unsigned int mGRLResultSequenceNumber; unsigned int mHelpResultSequenceNumber; unsigned int mQuerySequenceNumber; double mSearchTimeInterval; NSTimer *mDelayedShowcaseTimer; SEL mMoveUpSelector; SEL mMoveDownSelector; SEL mMoveLeftSelector; SEL mMoveRightSelector; SEL mCarriageReturnSelector; SEL mNewLineSelector; SEL mEnterSelector; struct OpaqueMenuRef *mPreviousHelpMenu; struct OpaqueEventHandlerRef *mInstallWhenTrackingHandlerRef; }

@end