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:
@@ -250,7 +250,7 @@ private:
|
|||||||
// owned by the set. Furthermore, children of the last parent are stored
|
// owned by the set. Furthermore, children of the last parent are stored
|
||||||
// in a linear list.
|
// 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
|
// descriptors specifying the sorting (currently the array only holds one
|
||||||
// object only)
|
// object only)
|
||||||
@@ -398,7 +398,7 @@ private:
|
|||||||
// wxCocoaOutlineView
|
// wxCocoaOutlineView
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
@interface wxCocoaOutlineView : NSOutlineView
|
@interface wxCocoaOutlineView : NSOutlineView wxOSX_10_6_AND_LATER(<NSOutlineViewDelegate>)
|
||||||
{
|
{
|
||||||
@private
|
@private
|
||||||
// column and row of the cell being edited or -1 if none
|
// column and row of the cell being edited or -1 if none
|
||||||
|
@@ -287,7 +287,7 @@ protected :
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface wxNSTextField : NSTextField
|
@interface wxNSTextField : NSTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>)
|
||||||
{
|
{
|
||||||
wxNSTextFieldEditor* fieldEditor;
|
wxNSTextFieldEditor* fieldEditor;
|
||||||
}
|
}
|
||||||
@@ -297,7 +297,7 @@ protected :
|
|||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface wxNSSecureTextField : NSSecureTextField
|
@interface wxNSSecureTextField : NSSecureTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -32,21 +32,16 @@
|
|||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog)
|
IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog)
|
||||||
|
|
||||||
// Cocoa headers
|
#include "wx/osx/private.h"
|
||||||
#include "wx/cocoa/autorelease.h"
|
|
||||||
#include "wx/cocoa/string.h"
|
|
||||||
|
|
||||||
#import <AppKit/NSFont.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <AppKit/NSFontManager.h>
|
#import <AppKit/AppKit.h>
|
||||||
#import <AppKit/NSFontPanel.h>
|
|
||||||
#import <AppKit/NSColor.h>
|
|
||||||
#import <AppKit/NSColorPanel.h>
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// wxCPWCDelegate - Window Closed delegate
|
// wxCPWCDelegate - Window Closed delegate
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
@interface wxCPWCDelegate : NSObject
|
@interface wxCPWCDelegate : NSObject wxOSX_10_6_AND_LATER(<NSWindowDelegate>)
|
||||||
{
|
{
|
||||||
bool m_bIsClosed;
|
bool m_bIsClosed;
|
||||||
}
|
}
|
||||||
|
@@ -21,8 +21,8 @@
|
|||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/osx/cocoa/dataview.h"
|
|
||||||
#include "wx/osx/private.h"
|
#include "wx/osx/private.h"
|
||||||
|
#include "wx/osx/cocoa/dataview.h"
|
||||||
#include "wx/renderer.h"
|
#include "wx/renderer.h"
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -603,6 +603,7 @@ outlineView:(NSOutlineView*)outlineView
|
|||||||
::CFRelease(osxData);
|
::CFRelease(osxData);
|
||||||
delete dataObjects;
|
delete dataObjects;
|
||||||
}
|
}
|
||||||
|
return dragSuccessful;
|
||||||
}
|
}
|
||||||
|
|
||||||
-(id) outlineView:(NSOutlineView*)outlineView
|
-(id) outlineView:(NSOutlineView*)outlineView
|
||||||
@@ -705,7 +706,7 @@ outlineView:(NSOutlineView*)outlineView
|
|||||||
sortingColumnPtr:dvc->GetColumn([[newDescriptor key] intValue])
|
sortingColumnPtr:dvc->GetColumn([[newDescriptor key] intValue])
|
||||||
ascending:[newDescriptor ascending]] autorelease]];
|
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
|
// send first the event to wxWidgets that the sorting has changed so that
|
||||||
// the program can do special actions before the sorting actually starts:
|
// 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
|
// controller
|
||||||
//
|
//
|
||||||
|
|
||||||
@interface wxNonOwnedWindowController : NSObject
|
@interface wxNonOwnedWindowController : NSObject wxOSX_10_6_AND_LATER(<NSWindowDelegate>)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
// controller
|
// 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;
|
size.y += [m_textView textContainerInset].height;
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
return wxSize(0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// wxNSTextFieldControl
|
// wxNSTextFieldControl
|
||||||
|
|
||||||
wxNSTextFieldControl::wxNSTextFieldControl( wxWindow *wxPeer, WXWidget w ) : wxWidgetCocoaImpl(wxPeer, w)
|
wxNSTextFieldControl::wxNSTextFieldControl( wxWindow *wxPeer, WXWidget w ) : wxWidgetCocoaImpl(wxPeer, w)
|
||||||
{
|
{
|
||||||
m_textField = (NSTextField*) w;
|
NSTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>) *tf = (NSTextField*) w;
|
||||||
[m_textField setDelegate: w];
|
m_textField = tf;
|
||||||
|
[m_textField setDelegate: tf];
|
||||||
m_selStart = m_selEnd = 0;
|
m_selStart = m_selEnd = 0;
|
||||||
m_hasEditor = [w isKindOfClass:[NSTextField class]];
|
m_hasEditor = [w isKindOfClass:[NSTextField class]];
|
||||||
}
|
}
|
||||||
|
@@ -269,7 +269,7 @@ private:
|
|||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
@interface wxNSToolbarDelegate : NSObject
|
@interface wxNSToolbarDelegate : NSObject wxOSX_10_6_AND_LATER(<NSToolbarDelegate>)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -79,7 +79,7 @@ void wxMacWakeUp()
|
|||||||
|
|
||||||
#if wxUSE_GUI
|
#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;
|
NSView* view = nil;
|
||||||
if ( [responder isKindOfClass:[NSTextView class]] )
|
if ( [responder isKindOfClass:[NSTextView class]] )
|
||||||
{
|
{
|
||||||
NSView* delegate = [(NSTextView*)responder delegate];
|
NSView* delegate = (NSView*) [(NSTextView*)responder delegate];
|
||||||
if ( [delegate isKindOfClass:[NSTextField class] ] )
|
if ( [delegate isKindOfClass:[NSTextField class] ] )
|
||||||
view = delegate;
|
view = delegate;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user