const wxPoint& pos, const wxSize& size, long style,
const wxValidator& validator, const wxString& name)
{
+ //flag checking
+ wxASSERT_MSG( !(style & wxGA_HORIZONTAL), wxT("Horizontal gauge not supported on cocoa"));//*
+ wxASSERT_MSG( !(style & wxGA_SMOOTH), wxT("Smooth gauge not supported on cocoa"));
+ //* - GNUStep made isVertical and setVertical part of thier framework, but its specific to them
+ //the way they do it is just handle that flag in drawRect.
+
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
SetNSView([[NSProgressIndicator alloc] initWithFrame: MakeDefaultNSRect(size)]);
const wxPoint& pos, const wxSize& size, long style,
const wxString& name)
{
+ //bad flag checking
+ wxASSERT_MSG( !(style & wxSP_HORIZONTAL), wxT("Horizontal wxSpinButton not supported in cocoa"));
if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
return false;
SetNSControl([[NSStepper alloc] initWithFrame: MakeDefaultNSRect(size)]);
[m_cocoaNSView release];
- //flag handling (note wxSP_HORIZONTAL IS _NOT_ Supported in cocoa)
+ //flag handling
[(NSStepper*)m_cocoaNSView setValueWraps:style & wxSP_WRAP]; //default == true, evidently
//final setup
#import <AppKit/NSView.h>
+//
+// Private object in AppKit - exists in 10.2 at least -
+// most likely exists earlier too
+//
@interface NSToolTipManager : NSObject
{
/*
#ifndef WX_PRECOMP
#endif
#include "wx/unix/execute.h"
+#include "wx/utils.h"
#if 0