GetHandle() on OS/X ?

Hi,

I guess it makes sense at this time to add Mark Kim's code, but maybe documentation should reflect somewhere that GetHandle() on OS/X is not quite GetHandle().

I have another question.

I've been trying to compile wxPython on my Mac, and am running into a few problems, regarding wcslen().

I tried disabling wchar support for wxWindows by writing #define wxUSE_WCHAR_T 0 in setup.h, but the resultant wxWindows build does not allow compilation of wxPython. Any ideas?

(I'm running Mac OS/X 10.3)

Thanks

Rajas
Robin Dunn wrote:

Rajas Sambhare wrote:

Hi,

I'm working on a open-source video transcription application called
Transana, with Windows and OS/X as target platforms. As a part of the
application, I need to control a video in QuickTime. I need to pass
the handle (WindowRef) of the window which holds the video to
QuickTime.

A while earlier Mark Kim, had sent a patch which implemented
GetHandle on the Mac, but I notice that his changes are not present
in wxPython 2.4.2.4. I also noticed some discussions about this on
the list, including one discussion in which Stefan Csomor said "only
once we will move to HIView under 10.2 will we have a native object
(HIObject) of the same superclass for every instance of wxWindow"

So my questions are

1. Is GetHandle supported on OS/X, and if it isn't will it be in the
near future?

I suppose that I can add the code that was posted before, as long as it
is okay that you will only get the WindowRef of the top-level window
since with the current implementation all the other wxWindows do not
have a native window couterpart. In other words, if you call
panel.GetHandle() the value you get back will be the same as
wx.GetTopLevelParent(panel).GetHandle().

2. As we plan to release a OS/X version of Transana in the near
future (maybe April) are there any alternatives to GetHandle that we
can use?

Not that I know of.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages