diff options
| author | nyamatongwe <unknown> | 2013-03-15 20:37:27 +1100 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2013-03-15 20:37:27 +1100 | 
| commit | 9b1adea4079a2384f93acb83bd4d1a7a7b709819 (patch) | |
| tree | 57738da28b70caf2db461621730064b40323558b /cocoa/ScintillaCocoa.h | |
| parent | 39afe073dae7d7bb6058ab0a3c86c661381f14b6 (diff) | |
| download | scintilla-mirror-9b1adea4079a2384f93acb83bd4d1a7a7b709819.tar.gz | |
Added type safety by using InnerView where applicable instead of generic NSView.
Diffstat (limited to 'cocoa/ScintillaCocoa.h')
| -rw-r--r-- | cocoa/ScintillaCocoa.h | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 27ce11fd8..302e39d97 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -54,6 +54,7 @@  extern "C" NSString* ScintillaRecPboardType; +@class InnerView;  @class ScintillaView;  @class FindHighlightLayer; @@ -132,16 +133,16 @@ protected:    virtual CaseFolder *CaseFolderForEncoding();    virtual std::string CaseMapString(const std::string &s, int caseMapping);    virtual void CancelModes(); -public: -  NSView* ContentView(); -  ScintillaCocoa(NSView* view); +public: +  ScintillaCocoa(InnerView* view);    virtual ~ScintillaCocoa();    void RegisterNotifyCallback(intptr_t windowid, SciNotifyFunc callback);    sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam);    ScintillaView* TopContainer(); +  InnerView* ContentView();    bool SyncPaint(void* gc, PRectangle rc);    bool Draw(NSRect rect, CGContextRef gc);  | 
