Re: [AD] (5.1) Mac OSX Patch - added a way to get NSWindow

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thu, 12 Jul 2012 16:50:04 -0400
Dennis <dgooden@xxxxxxxxxx> wrote:

> I've added a way to get the native NSWindow handle for OSX, just like
> getting a HWND under Windows, UIView under iPhone, etc.
> 
> This adds a new file called allegro_osx.h. I think I got the CMAKE
> stuff right, I just copied what it does for allegro_windows.h. It
> seems to build and work OK for me.
> 
> I made this patch because if you use multiple windows (created with
> al_create_display) in your program, there isn't an easy way to get
> access to the different native NSWindow's. It's possible, but it's a
> pain. With just a single window, it's not as much of a problem.
> 
> Patch is attached, let me know if you have any questions/comments.
> 

Thanks, it compiled on my mac with the patch applied, so committed it
while there.

We probably could add a call of the function to ex_multiwin (with an
#ifdef, to show the system window handle for OSX, Windows, IPhone...
maybe with the builtin font). I'll see if I get around to do that.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/