adding protocol support for 10.6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
496af8a383
commit
c8fdb345a0
@ -250,7 +250,7 @@ private:
|
||||
// owned by the set. Furthermore, children of the last parent are stored
|
||||
// in a linear list.
|
||||
//
|
||||
@interface wxCocoaOutlineDataSource : NSObject
|
||||
@interface wxCocoaOutlineDataSource : NSObject wxOSX_10_6_AND_LATER(<NSOutlineViewDataSource>)
|
||||
{
|
||||
// descriptors specifying the sorting (currently the array only holds one
|
||||
// object only)
|
||||
@ -398,7 +398,7 @@ private:
|
||||
// wxCocoaOutlineView
|
||||
// ============================================================================
|
||||
|
||||
@interface wxCocoaOutlineView : NSOutlineView
|
||||
@interface wxCocoaOutlineView : NSOutlineView wxOSX_10_6_AND_LATER(<NSOutlineViewDelegate>)
|
||||
{
|
||||
@private
|
||||
// column and row of the cell being edited or -1 if none
|
||||
|
@ -287,7 +287,7 @@ protected :
|
||||
|
||||
@end
|
||||
|
||||
@interface wxNSTextField : NSTextField
|
||||
@interface wxNSTextField : NSTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>)
|
||||
{
|
||||
wxNSTextFieldEditor* fieldEditor;
|
||||
}
|
||||
@ -297,7 +297,7 @@ protected :
|
||||
|
||||
@end
|
||||
|
||||
@interface wxNSSecureTextField : NSSecureTextField
|
||||
@interface wxNSSecureTextField : NSSecureTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -32,21 +32,16 @@
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog)
|
||||
|
||||
// Cocoa headers
|
||||
#include "wx/cocoa/autorelease.h"
|
||||
#include "wx/cocoa/string.h"
|
||||
#include "wx/osx/private.h"
|
||||
|
||||
#import <AppKit/NSFont.h>
|
||||
#import <AppKit/NSFontManager.h>
|
||||
#import <AppKit/NSFontPanel.h>
|
||||
#import <AppKit/NSColor.h>
|
||||
#import <AppKit/NSColorPanel.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// wxCPWCDelegate - Window Closed delegate
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@interface wxCPWCDelegate : NSObject
|
||||
@interface wxCPWCDelegate : NSObject wxOSX_10_6_AND_LATER(<NSWindowDelegate>)
|
||||
{
|
||||
bool m_bIsClosed;
|
||||
}
|
||||
|
@ -21,8 +21,8 @@
|
||||
#include "wx/utils.h"
|
||||
#endif
|
||||
|
||||
#include "wx/osx/cocoa/dataview.h"
|
||||
#include "wx/osx/private.h"
|
||||
#include "wx/osx/cocoa/dataview.h"
|
||||
#include "wx/renderer.h"
|
||||
|
||||
// ============================================================================
|
||||
@ -603,6 +603,7 @@ outlineView:(NSOutlineView*)outlineView
|
||||
::CFRelease(osxData);
|
||||
delete dataObjects;
|
||||
}
|
||||
return dragSuccessful;
|
||||
}
|
||||
|
||||
-(id) outlineView:(NSOutlineView*)outlineView
|
||||
@ -705,7 +706,7 @@ outlineView:(NSOutlineView*)outlineView
|
||||
sortingColumnPtr:dvc->GetColumn([[newDescriptor key] intValue])
|
||||
ascending:[newDescriptor ascending]] autorelease]];
|
||||
}
|
||||
[[outlineView dataSource] setSortDescriptors:wxSortDescriptors];
|
||||
[(wxCocoaOutlineDataSource*)[outlineView dataSource] setSortDescriptors:wxSortDescriptors];
|
||||
|
||||
// send first the event to wxWidgets that the sorting has changed so that
|
||||
// the program can do special actions before the sorting actually starts:
|
||||
|
@ -194,7 +194,7 @@ typedef void (*wxOSX_NoResponderHandlerPtr)(NSView* self, SEL _cmd, SEL selector
|
||||
// controller
|
||||
//
|
||||
|
||||
@interface wxNonOwnedWindowController : NSObject
|
||||
@interface wxNonOwnedWindowController : NSObject wxOSX_10_6_AND_LATER(<NSWindowDelegate>)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
// controller
|
||||
//
|
||||
|
||||
@interface wxTabViewController : NSObject
|
||||
@interface wxTabViewController : NSObject wxOSX_10_6_AND_LATER(<NSTabViewDelegate>)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -524,14 +524,16 @@ wxSize wxNSTextViewControl::GetBestSize() const
|
||||
size.y += [m_textView textContainerInset].height;
|
||||
return size;
|
||||
}
|
||||
return wxSize(0,0);
|
||||
}
|
||||
|
||||
// wxNSTextFieldControl
|
||||
|
||||
wxNSTextFieldControl::wxNSTextFieldControl( wxWindow *wxPeer, WXWidget w ) : wxWidgetCocoaImpl(wxPeer, w)
|
||||
{
|
||||
m_textField = (NSTextField*) w;
|
||||
[m_textField setDelegate: w];
|
||||
NSTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>) *tf = (NSTextField*) w;
|
||||
m_textField = tf;
|
||||
[m_textField setDelegate: tf];
|
||||
m_selStart = m_selEnd = 0;
|
||||
m_hasEditor = [w isKindOfClass:[NSTextField class]];
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ private:
|
||||
@end
|
||||
|
||||
|
||||
@interface wxNSToolbarDelegate : NSObject
|
||||
@interface wxNSToolbarDelegate : NSObject wxOSX_10_6_AND_LATER(<NSToolbarDelegate>)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ void wxMacWakeUp()
|
||||
|
||||
#if wxUSE_GUI
|
||||
|
||||
@interface wxNSAppController : NSObject
|
||||
@interface wxNSAppController : NSObject wxOSX_10_6_AND_LATER(<NSApplicationDelegate>)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ NSView* GetViewFromResponder( NSResponder* responder )
|
||||
NSView* view = nil;
|
||||
if ( [responder isKindOfClass:[NSTextView class]] )
|
||||
{
|
||||
NSView* delegate = [(NSTextView*)responder delegate];
|
||||
NSView* delegate = (NSView*) [(NSTextView*)responder delegate];
|
||||
if ( [delegate isKindOfClass:[NSTextField class] ] )
|
||||
view = delegate;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user