Author Topic: Code::Blocks on MacOSX  (Read 15095 times)

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 836
Re: Code::Blocks on MacOSX
« Reply #15 on: October 27, 2006, 06:05:27 pm »
Quote
I was maybe a little too quick to announce total MacOSX success, one remaining issue is wxSmith.

wxSmith has issues in other platforms too, so don't worry. Eventually, byo will fix it :).

Linux may be easy thing but is there any way to emulate Mac behaviour ? I tried to fix some bugs but it still takes 2GB of memory:/

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Code::Blocks on MacOSX
« Reply #16 on: October 28, 2006, 05:40:00 pm »
Linux may be easy thing but is there any way to emulate Mac behaviour ?

I'm afraid you'll have to use a Mac.

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Code::Blocks on MacOSX
« Reply #17 on: October 28, 2006, 05:43:12 pm »
I am just curious Byo what are you doing in your plugin that is so platform dependent?  Are these bugs arsing from the lack of wxWidgets documentation on features which do different things depending on different platforms?

takeshimiya

  • Guest
Re: Code::Blocks on MacOSX
« Reply #18 on: October 28, 2006, 06:22:48 pm »
I am just curious Byo what are you doing in your plugin that is so platform dependent?  Are these bugs arsing from the lack of wxWidgets documentation on features which do different things depending on different platforms?
Usually is just a bug that in some platform (Windows) goes unnoticed or doesn't happens while it appears on others (Linux/Mac).
AFAIK wxSmith doesn't uses non-cross platform code.

Has anyone tried valgrind (It even exists there?) on Mac? or any equivalent?
And debugging it?

Anyways the issues raised by afb haves more priority than wxSmith currently.

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Code::Blocks on MacOSX
« Reply #19 on: October 28, 2006, 09:51:08 pm »
Has anybody run valgrind over CB on Linux recently?  Valgrind is being ported to mac, we just half to wait.

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 836
Re: Code::Blocks on MacOSX
« Reply #20 on: October 28, 2006, 10:32:14 pm »
I am just curious Byo what are you doing in your plugin that is so platform dependent?  Are these bugs arsing from the lack of wxWidgets documentation on features which do different things depending on different platforms?

It's system used in editor to draw over widgets (f.ex. adding these black boxes around item allowing to resize / move them). I've tried to handle repaint events for all widgets in edited resource but it wasn't enough (and to be more clear: wxWidgets is really buggy in handling of paint/mouse events for standard widgets). So currently I do some trick - I paint all items and after it's done I fetch picture directly from screen, hide items and use that fetched picture as background for editor. It's hard to do make some universal technique but I believe it's donnable.

Other things are incompatibilities in raising events. I don't remember exactly but after setting some text on item manually it raises text-changed event on some platforms and doesn't on other. So it may work on windows but may fail on linux etc.

Anyways the issues raised by afb haves more priority than wxSmith currently.

True, wxSmith is not required to make C::B running.
But it doesn't mean I will stop porting wxSmith :D.

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Code::Blocks on MacOSX
« Reply #21 on: October 28, 2006, 11:55:14 pm »
This is quite a hack you have there.  Sorry to hear the wxWidgets is in a such a state that it requires you to do that.  I wonder how DialogBlocks does it?  I always assumed there was just a special version of each standard widget that drew a rectangle around its border with during the proper paint event.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Code::Blocks on MacOSX
« Reply #22 on: October 29, 2006, 08:49:44 am »
.... So currently I do some trick - I paint all items and after it's done I fetch picture directly from screen, hide items and use that fetched picture as background for editor...
that's maybe the reason why i do most of the time only see a black box instead of the created dialogue  :?