I am using the wxWidgets-devl @2.9.2
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to wx-users+u...@googlegroups.com
> or visit http://groups.google.com/group/wx-users
Best wishes,
Peica Chen 陈培嘉
other mail: pe...@qq.com
2.9.2 can use Carbon as well as Cocoa. How did you compile the
library? If you use configure and didn't pass --with-cocoa or
--with-osx-cocoa then you are using Carbon.
Regards,
Dimitri
Or should I realize that the cocoa is not support by wxWidgets?
-L/opt/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime -lwx_osx_cocoau_xrc-2.9 -lwx_osx_cocoau_html-2.9 -lwx_osx_cocoau_qa-2.9 -lwx_osx_cocoau_adv-2.9 -lwx_osx_cocoau_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9
在 2011-9-4,下午11:41, Dimitri Schoolwerth 写道:
> I have try to use the wxWidgets on OS Lion. And I found I could not
> input any text into those text related control. (E.g. wxTextCtrl and
> wxGrid). But I could paste the text into it by context menu.
I am not seeing the problem with either 2.9.2 or trunk (2.9.3) using
Cocoa. I am trying the minimal sample with a wxTextCtrl, on OS X
10.7(.0).
In case you have Xcode 3 or later, could you please try the following?
Download wx 2.9.2 from
http://sourceforge.net/projects/wxwindows/files/2.9.2/wxWidgets-2.9.2.tar.bz2/download
.
Extract the archive and open samples/minimal/minimal_cocoa.xcodeproj
Add the following line at the start of MyFrame::MyFrame in minimal.cpp :
"
new wxTextCtrl(new wxPanel(this), wxID_ANY);
"
Press Cmd+R to Build and Run.
The resulting application allows me to input text (I also tried
successfully with Pinyin Simplified and Traditional).
Regards,
Dimitri
Best wishes,
Peica Chen 陈培嘉
mobile: +86-13824491229
I meet a compilation error in Xcode 4.1 for this project.
/Users/peica/Desktop/wxWidgets-2.9.2/build/osx/../../src/osx/utils_osx.cpp:72: error: 'CGDisplayBitsPerPixel' was not declared in this scope
file://localhost/Users/peica/Desktop/wxWidgets-2.9.2/src/osx/utils_osx.cpp: error: Semantic Issue: Use of undeclared identifier 'CGDisplayBitsPerPixel'
/Users/peica/Desktop/wxWidgets-2.9.2/build/osx/../../src/osx/window_osx.cpp:1605: error: 'InsetRect' was not declared in this scope
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to wx-users+u...@googlegroups.com
> or visit http://groups.google.com/group/wx-users
Best wishes,
Peica Chen 陈培嘉
other mail: pe...@qq.com
I meet a compilation error in Xcode 4.1 for this project.
/Users/peica/Desktop/wxWidgets-2.9.2/build/osx/../../src/osx/utils_osx.cpp:72: error: 'CGDisplayBitsPerPixel' was not declared in this scope
SDKROOT=macosx10.6
Regards,
Dimitri
Does it mean the problem on my side is caused by the error configuration of macport?
Sorry. This problem is caused by my mistaken. I have forgot to create a application bundle for my output.
It is mention at here.
Notice that, by default, Eclipse CDT does not create app bundles, so your app will not be able to come into focus. Seehttp://wiki.wxwidgets.org/WxMac_Issues#My_app_can.27t_be_brought_to_the_front.21 for solutions.
在 2011-9-6,下午1:48, Dimitri Schoolwerth 写道:
Sorry. This problem is caused by my mistaken. I have forgot to create a application bundle for my output.
It is mention at here.
Notice that, by default, Eclipse CDT does not create app bundles, so your app will not be able to come into focus. Seehttp://wiki.wxwidgets.org/WxMac_Issues#My_app_can.27t_be_brought_to_the_front.21 for solutions.
在 2011-9-6,下午1:48, Dimitri Schoolwerth 写道: