functions inside switch cases

Why is it having a problem running my function?

The function is implemented correctly.

Origanaly I had the funcion return an 'int' but then changed it to return 'void' and it still gave me the same error.


User uploaded file

Xcode4-OTHER, Mac OS X (10.6.7)

Posted on Jan 1, 2013 6:15 PM

Reply
6 replies

Jan 2, 2013 9:04 AM in response to GeekPod42

You'd do well to learn the difference between integers (type: int) and functions before trying to go any further.


If you don't know any C, you're headed for a world of pain. I'd suggest you put aside your attempts at Objective C and Cocoa and learn the fundamentals. Start here:


1

Learn C on a Mac


Then move on to


2

Programming in Objective C


Then start working through


3.

Cocoa Programming for Mac


I made the mistake of starting with 3, realised I needed to read 2 by about Chapter 5, then about a third of the way through 2 realised I needed 1.


Do it the right way round and save yourself both time and a lot of headaches. 😉

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

functions inside switch cases

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.