PDA

View Full Version : Mixing SDL with Cocoa


Taxxodium
2003.11.22, 05:23 PM
Hi,

I'm currenly in the last stages of my SDL game and as much as I'd like it to be platform independent I found out that it would be easier to make an extra window for some additional stuff.

So what I'd like to do is make a nib file, read data from some TextFields and then use that data in my c++ classes.

Would this be easier if I just created a text file in my ObjC class, which contains the data I need and then read it back in from my C++ class or is there a better way?

Thanks in advance!

Mars_999
2003.11.22, 09:28 PM
Originally posted by Taxxodium
Hi,

I'm currenly in the last stages of my SDL game and as much as I'd like it to be platform independent I found out that it would be easier to make an extra window for some additional stuff.

So what I'd like to do is make a nib file, read data from some TextFields and then use that data in my c++ classes.

Would this be easier if I just created a text file in my ObjC class, which contains the data I need and then read it back in from my C++ class or is there a better way?

Thanks in advance!

I am not sure, but I don't think that ObjC is going to work on PCs?

But onto SDL. If this game stays on Mac, just take then info from the text fields and put them into your C++ class variables.

If you really want it to be cross platform you would be better off looking into using a GUI library for SDL or make your own and take user input from that.