Browsing PhotoLibrary...
by Ecliptic · in iTorque 2D · 02/24/2009 (9:15 pm) · 3 replies
Does anyone know how to browse the images in the photolibrary of the iphone? The last thing for my game port is browsing the photolibrary and I can't find any examples of this anywhere. Has anyone done this yet?
Thanks
Dane
Thanks
Dane
#2
That being said, there's nothing keeping you from writing you own code in iTGB and exposing certain parts of it to script ( like here or the keyboard solution you mentioned)
Do a global search in XCode for ConsoleFunction and ConsoleMethod and see how they are used, they are the 2 macros that are used to link a C-code function to a script function.
02/25/2009 (2:32 pm)
No, iPhone-specific code is not really exposed to TorqueScript, Actually, the opposite is mostly true, all the inner workings of the OS are hidden from script, which is part of the reason why Torque can be so multi-platform.That being said, there's nothing keeping you from writing you own code in iTGB and exposing certain parts of it to script ( like here or the keyboard solution you mentioned)
Do a global search in XCode for ConsoleFunction and ConsoleMethod and see how they are used, they are the 2 macros that are used to link a C-code function to a script function.
#3
I geuss my main worry is creating a console function on my own when there might be one in iTGB already for the same thing. Thus making my game code inefficient. Probably should use the global search function more often.... :D
Thanks again,
Dane
02/25/2009 (5:24 pm)
Thanks Mat. Thats pretty much what I have been trying lately. My programming skills aren't that great so its more of a trail and error for me. Thanks for the link as I have not seen that yet and reading it has helped a lot.I geuss my main worry is creating a console function on my own when there might be one in iTGB already for the same thing. Thus making my game code inefficient. Probably should use the global search function more often.... :D
Thanks again,
Dane
Torque Owner Ecliptic
Do all the defualt IPhone functions and variable work in iTGB? What I mean is if I find a function you can write in Object-C language for the iphone, can you use that function in torque script? Or is there some spot in the source that defines a new function or variable to use? I know some are different, so how does one discover how to utilize certain commands for the iphone using iTGB?
I apologise if this is a retarded question, I am new to programming/scripting and I was just starting to feel comfortable with scripting so this is a whole new area for me.
Thanks everyone for the patience and help that you have been providing.
Dane