Skip to main content
Search titles, bodies, and author names
Found 1,112 posts across 1 forum.

C++, Xcode telling me main() needs int?! — #3

Quote: Originally posted by iPhotoStuff: Hi Folks, now, I read in a bunch of places that different compilers require different returns for main? Frankly, I have no idea…
MacNN Development by PBG4 User

C++, Xcode telling me main() needs int?! — #4

the return value usually just tells the OS the exit status of the program. Just change that main function to read: int main() { ... } and at the end of the program before the last…
MacNN Development by itistoday

C++, Xcode telling me main() needs int?! — #5

another spot that discusses something similar to this question is down a little ways titled "help please" posted by zanyterp . . . (me). perhaps can help little bit more. . . .whi…
MacNN Development by zanyterp

C++, Xcode telling me main() needs int?! — #6

Quote: Originally posted by zanyterp: while on this topic here, if i declare a function that main() calls, does void functionName() work? (including the ';' as needed of…
MacNN Development by Chuckit

C++, Xcode telling me main() needs int?! — #7

Quote: Originally posted by zanyterp: another spot that discusses something similar to this question is down a little ways titled "help please" posted by zanyterp . . . …
MacNN Development by PBG4 User

C++, Xcode telling me main() needs int?! — #8

Quote: Originally posted by PBG4 User: Yes, you can create void functions. It's just that some compilers expect the main method to be declared as int main... The C+…
MacNN Development by Chuckit

C++, Xcode telling me main() needs int?! — #9

Quote: Originally posted by Chuckit: void functionName(); is a valid declaration. You should just be including the header file, though. so instead of declaring the…
MacNN Development by zanyterp

C++, Xcode telling me main() needs int?! — #10

Normally you declare your functions in a header file and define them in an implementation file. Like this: code:// SomeClass.h #ifndef SOMECLASS_H #define SOMECLASS_H class Some…
MacNN Development by Chuckit

C++, Xcode telling me main() needs int?! — #11

Quote: Originally posted by Chuckit: Normally you declare your functions in a header file and define them in an implementation file. Like this: code:// SomeClass.h #if…
MacNN Development by zanyterp

C++, Xcode telling me main() needs int?! — #12

Well, you don't want to include a file that's going to be compiled in another file that's going to be compiled. That will just confuse things. Also, header files do make your desig…
MacNN Development by Chuckit

C++, Xcode telling me main() needs int?! — #13

Quote: Originally posted by Chuckit: Normally you declare your functions in a header file and define them in an implementation file. Like this: code:// SomeClass.h #if…
MacNN Development by PBG4 User

iTunes export to disk image or folders — #1

Hello, Anyone know of a way to export tracks out of itunes, keeping the folder heirarchy to either a disk image or another hard drive? I've tried various applescripts from Doug's…
MacNN Development by ccrider

apple design award/contest — #1

i was wondering if any of you know if entries for the apple design award contest have to written in objective-c or if any language is accepted? (i've checked the apple developer si…
MacNN Development by zanyterp

apple design award/contest — #2

They tend not to announce the details of each year's contest until a few months before the deadline, which is usually about a month before WWDC... so stay tuned, it'll likely come …
MacNN Development by Rickster

apple design award/contest — #3

Quote: Originally posted by Rickster: They tend not to announce the details of each year's contest until a few months before the deadline, which is usually about a month…
MacNN Development by zanyterp

apple design award/contest — #4

Yes and no. There's Objective-C++, which is better described as using C++ from within an Obj-C Cocoa program than the other way around. You can write as much of your custom logic i…
MacNN Development by Rickster

apple design award/contest — #5

Quote: Originally posted by zanyterp: thanks. and C++ cannot access cocoa calls, right? No, it is actually possible to acess Cocoa from C++ using loadable bundles …
MacNN Development by saddino

iPod shuffle, finally shipped! — #1

I ordered 1GB shuffle on 12th Jan from UK online store, and today I got a notice that they finally shipped mine. Wonder it was shipped from where? From China or Apple UK store? …
MacNN Development by sungwoo

iPod shuffle, finally shipped! — #3

Quote: Originally posted by sungwoo: Still I have to wait a long way to receive it. Boo hoo. Some people have a much longer wait than you do.
MacNN Development by lavar78

iPod shuffle, finally shipped! — #4

Quote: Originally posted by lavar78: Boo hoo. Some people have a much longer wait than you do. You are right. I shouldn't complain. But still, it is hard to w…
MacNN Development by sungwoo

iPod shuffle, finally shipped! — #6

Quote: Originally posted by hyperlucid: Mine was shipped from Canada (I'm in NYC). Why would it come from Canada?
MacNN Development by Severed Hand of Skywalker
mp.ls