XCode Newbie Having Trouble Getting Started, Any Advice..?
XCode Newbie Having Trouble Getting Started, Any Advice..?
- Subject: XCode Newbie Having Trouble Getting Started, Any Advice..?
- From: Alex Drinkwater <email@hidden>
- Date: Thu, 20 Dec 2007 11:16:25 +0000 (GMT)
Hi,
I'm new to the list, so let me introduce myself.
I'm Alex, from London in the UK. I suppose I could be
described as an 'interested amateur' when it comes to
coding. I have a small amount of experience with the
C-language (I did most of an introductory course a few
years ago), and some experience of coding in a variety
of higher-level scripting languages, including Lingo,
ActionScript, JavaScript, PHP and the subset of GLSL
used for Core Image filter kernels in Quartz Composer,
among others, so I'm not completely new to some of the
ideas around programming. Save for that C class,
however, I have no formal training in programming, so
what I have learnt, I've picked up in a more-or-less
ad-hoc way, by picking apart other people's code, and
asking annoying questions of more experienced
programmers.
I've just purchased this book
http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764573993.html
with a view to learning a bit about XCode and
Objective C, and eventually applying that knowledge to
creating 3D video and graphics effects using OpenGL,
GLSL and Quartz Composer.
I've started working my way through the book, but
almost immediately hit a problem. It appears that the
version of the GCC compiler installed with XCode 3.0
under Leopard doesn't allow nested functions. This is
a problem, because the very first project in the book
uses a Switch function inside the main function.
Flipping through the code contained in the rest of the
book, it looks like there are quite a few examples of
nested functions, which, presumably, also will fail to
compile.
This leads me to wonder:
Is it the case that any sort of function, including
the most basic conditionals, will cause the project to
fail to compile if it's nested inside another
function? This seems really odd, as every other
language I've used/seen allows this.
Googling around the issue, it looks like this may be
'old news', but I haven't been able to find a solution
yet. Is this only an issue with C code, and won't be a
problem with Obj-C? If this is the case, then I can
probably skip the examples in C, and jump to the
chapter on Objective C.
Any advice gratefully accepted,
Regards,
alx
Quartx Composer blog:
http://machinesdontcare.wordpress.com
Music site:
http://www.toneburst.net
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden