On 1/4/17, Germán Arias <germanan...@gmx.es> wrote: > Hi, > > El mié, 04-01-2017 a las 14:37 -0800, Eric Wing escribió: > [...] >> >> Thanks. So any news on you being able to get a Mac to help out? Or >> maybe using GNUStep? (My code won't work with GNUStep right now, but >> I >> think we could do some things to fix that.) >> >> Thanks, >> Eric >> > > I have experience with legacy Objective-C using GNUstep (I don't have a > Mac). So I can help on this, since if this works on GNUstep it should > work on Mac. Have you some repository to see the code? > > Germán >
Awesome! https://github.com/ewmailing/IupCocoa (Switch to the Cocoa branch) I actually took an implementation somebody else started with, so I haven’t audited/fixed all the code yet and am using it to bootstrap. There is some stuff that touches old Mac Carbon headers which will be the first obstacle for GNUStep. This stuff probably needs to be rewritten anyway for modern Mac, though unfortunately, I suspect GNUStep would have a different implementation too. I put in some stuff for CALayer (Core Animation) for some more advanced long term ideas I had. This will definitely not work on GNUStep (unless they surprised me and actually kept up with Apple circa 2007). I’m thinking maybe the best way to handle this is implement a dummy CALayer class that basically does nothing just to get things to compile. On the GNUStep path, there will never be any actual CALayers created, so the CALayer paths should never trigger. (I think all my CALayer uses are behind a class check of isKindOf.) After some discussions with other experienced Cocoa devs I trust, we concluded that using ARC would be a bad idea for this project so I disabled it. I imagine that should be a really good thing for GNUStep. I do have some left over unsafe_unretained markers around, but we can remove those if they are a problem for GNUStep. I haven't done any real GNUStep. (Briefly looked at it when I was learning Cocoa back in 2003-ish.) I know Apple has evolved Objective-C and Cocoa quite a bit since then, so I don't know how hard it will actually be to get GNUStep to work. So let me know if there is anything I can do to help you along. Thanks, Eric ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users