Xcode diverse questions.

Hello, looking to be a app developer, and I have a few questions about Xcode before I bug Apple. Xcode, as I am informed, runs on Panther, (beleive 1.5 does, or could you tell me the most recent one that will run on Panther? I know Panther is ancient, but thats what I'm running now on my old Powerbook, and I don't want to upgrade till I'm sure I'll be doing this. Also, could you tell me the main differeces between Xcode for Snow Leopard and Xcode for Panther? Thanks alot.

I would like to tell you definitively the most recent version of Xcode that will run on 10.3, but Apple's "All downloads" site for developers is down right now. I think it is 2.2 or maybe 2.5. Regardless, there are extensive changes between the older Xcodes and Xcode4. Plus, the older Xcodes are from before Xcode development really "took off", so you will have a difficult time finding books or documentation. The hardest part is building the user interface with Interface Builder. That has changed several times over the years and when it says "control-drag from X outlet to Y object" you may be lost if you don't have the exact version of Xcode that matches whatever tutorial you are using.
There is quite a bit of information available for Xcode3, but Xcode4 has now been released and that is another significant change. The differences are primarily platforms and Interface Builder. Older Xcodes only support Mac development for PPC. Xcode3 can build software for iOS, PPC and Intel Macs, and is a pretty good stand-alone IDE. Xcode4 is focused on iOS and Snow Leopard Intel Macs.

Similar Messages

  • Xcode project questions

    I have just created a new project in xcode.
    Now,I would like to get rid of the files proj_Prefix.pch and projPriv.h , because i don't need them. However, it seems i can't just delete them, because otherwise xcode complains about not finding them.
    In addition, can i get rid of the files projProj.xcconfig and projlTarget.xcconfig ?
    Oh, and one more question: which files of xcode should i put into the SVN repository?
    Thanks a lot in advance.
    Gabriel.

    You have to remove the proj_Prefix.pch and projPriv.h files from the project to delete them safely. In the project window, select the files you want to delete and press the Delete key. An alert opens asking you if you want to delete the references to the files or delete the files and references. Deleting the reference removes the file from the project but keeps it on your hard disk. Deleting the file and reference removes the file from the project and your hard disk. Deleting the reference, then moving the file to the Trash is safer than deleting the file and reference because you can recover the file if you find out you need it.
    You can get rid of the xcconfig files. Those are Xcode configuration files that contain build settings. Configuration files are useful if you make a lot of changes to Xcode's default build settings. By putting the changed settings in a configuration file, you don't have to change the settings in Xcode for every project.
    The point of a SVN repository is to track the changes you make to files. Put the files you need to track in the repository. At a minimum, you should put your source code files in the repository. What works for me is to put everything but the project's build folder in the repository. When I create a Xcode project I want to place under version control, I temporarily move the project's build folder. After importing the project into the repository and checking out the project's files, I move the build folder back with the project.

  • Xcode newbee question

    Hi I'm new to xcode programming. But I'm starting to build an application for mac using xcode.
    I can get the application to work, but there are several questions that I cannot resolve by myself.
    First of all, how can I make the application to be "Universal Binary"?
    Also, when I use the Interface Builder, I make my own classes, say "MAfoo." And write it out to xcode. But after I write down the class codes and modify them in xcode, whenever I make changes to Interface Builder, how can I change the previous version of codes without overriding the codes that I have written.
    I'm sorry if my question is vague.

    Brian is correct that universal binary is the default for Xcode 3, but make sure you're using the Release build configuration. The Debug build configuration cannot build universal binaries.
    swingo wrote:
    Also, when I use the Interface Builder, I make my own classes, say "MAfoo." And write it out to xcode. But after I write down the class codes and modify them in xcode, whenever I make changes to Interface Builder, how can I change the previous version of codes without overriding the codes that I have written.
    You have to make the changes in Xcode. When you tell Interface Builder to write class files, it overwrites any existing class files.
    A common situation is adding outlets and actions to your classes. What you have to do is open the header file in Xcode (MAfoo.h in your example) and add the outlets and actions. If you have your Xcode project open, the outlets and actions you added in Xcode will appear in Interface Builder.

  • Beginner XCode/Java Question - printf problem

    Hello,
    I have just started playing around with XCode and Java. I entered the statement:
    System.out.printf("%s\n%s\n", "Welcome to", "Java Programming!");
    into the default working java project (File -> New Project -> Java Tool) and Im getting the error "cannot find symbol" after I compiled it. I do not believe this is a syntax error since it was copied straight from a textbook. So, my questions are:
    1. What "symbol" is Xcode refering to?
    2. Does Xcode coem with the latest version of Java?
    3. How can I check the Java version?
    4. Is there a library that needs to be imported to get it working?
    Thanks in advance!

    Hi Arcus
    I think you might have to change some of the Xcode settings to force it to use Java 1.5. Try this:
    - From the menu, select: Project > Edit Active Target 'Your Program Name'
    - From the popup window, select Settings > Simple View > Java Compiler Settings.
    - Set Target VM Version and Source Version to 1.5
    - Dismiss the window by clicking on the red dot at the top left corner.
    Best wishes
    Bob

  • Xcode starter questions

    So, I am wanting to get into programming with apps. I don't have any experience with programming with this kind of stuff. But my questions are:                             1. Will Xcode work with Mac mini?
    2. I hear that you have to pay a yearly $100 to apple to submit my apps to the App Store. Is this true and what are the likelihood a that I will be able to make enough to pay it plus profit?
    3. Say I do charge for an app or built in feature, how will I receive my profit after apple takes their share?
    4. How easy is Xcode to use? I understand that there is coding and I'm not sure how difficult that would be. I'm willing to learn.
    5. What are the probabilities that I will get sales for charged apps I make?  I know it's hard depending if the app is a hit or not but is like a ballpark estimate.
    Thank you for any answers I'm wanting to look into this before I invest some money on this. If I have more questions ill post them below. Thanks!

    do any of you know how to fix a problem i am having

  • Xcode debugger question

    How do i setup the debugger in xcode?

    The debugger is already setup in Xcode, do you have a specific question?

  • Xcode iPhone Question

    Hi.
    I am trying to create a button that, when clicked, plays a sound.
    For example. If Button is clicked, then play sound "sound.wav".
    I have done this in Xcode for a regular cocoa application, making the generic "beep application" With NSBeep...
    I don't know how to implement NSSound into iphone to play a given sound on click of a button.
    Thanks for any help!

    The forums for developers are here:
    http://discussions.apple.com/category.jspa?categoryID=164

  • Xcode formatting question

    by default, xcode is making new functions like this:
    blahBlah {
    i want it to be
    blahBlah
    I haven't seen a preference for this yet. is it possible?
    thanks!
    - brian

    This level of preference adjustment is not possible without hacking up Xcode itself. You can create your own project templates, but the file templates are not customizable. Luckily, Xcode doesn't do much code generation or auto formatting so it usually isn't a big deal.

  • XCode macros question

    I have multiple static libraries which part a solution and i would like to share a few macros across them. i was wondering if there is a way to specify those macros in one place, so each project can pick them up instead of putting them each time in every project ?
    thanks a lot for the help.

    orangekay wrote:
    So you basically want an include file that you never have to include anywhere?
    If I understood correctly, what he wants is effectively the same thing you can achieve eg. in gcc with the -D command-line option. In other words, a preprocessor macro which is defined for all the source files in the project.
    I have hard time understanding how this is done in xcode. In some types of project you have directly a "preprocessor macros" entry in the project settings window, but in other types of projects you don't.
    Creating the user-defined setting GCCPREPROCESSORDEFINITIONS seems like a rather convoluted (and undocumented, or at least very hard to find in the documentation or on the internet) way of doing it, but it seems to work.
    Message was edited by: WarpRulez

  • CallManager as MTP/XCODE, design question

    Hi,
    I have the following setup:
    CCM 4.0(1)sr2a, one publisher, two subscribers
    IPCC Express, CRS 3.5(1)
    4 sites with 2800/3800 as gateway (PRI/BRI)
    Main site (Netherlands) holds call center agents (20) with several queues.
    New request from business is to have a local number in Spain that get's routed to the CSQs. No problem in itself, the queue, CTI route point, JTAPI trigger, calling search space, partition are all setup and it works fine. That is, as long as I use G.711, as soon as I use G.729 the call fails, so IMHO I have a transcoding issue.
    The design in place today is that I have the CallManager as MTP in the MRL (media resource list), but since the gateway in Spain uses a different MRL I wonder two things:
    1) is it at all possible to have the CallManager transcode and terminate the G.729 call from the gateway in Spain and the G.711 to the CTI port of the IPCC Express server? The setup is that the site that holds the IPCC Express server also holds a subscriber which is the MTP in the MRL. The other subscriber and publisher are in the datacenter.
    2) what is the best/easiest way to troubleshoot transcoding issues
    Thanks in advance,
    Leo

    Thanks for the swift reply, that is what I figured, but I was put on the wrong foot by a consultant taht came in and said it was possible.
    I am waiting for my PVDM as I initially ordered it in advance, and since the call volume is only 1 simultaneous call for now the G.711 is fine for now.
    Again, thanks for swift reply.
    Leo

  • Xcode game question.

    My teacher made a joke about an app that should be made for iPhone that is like bingo. I would like to make it so I can show it to him. It is like a bingo board, but has definitions of people (guy with a mohawk, Child on a leash, etc.) chose at random from a bank or something. When you click on the words, it goes to the camera, you take a picture of that described, and it puts it in the square. He said that this app would be fun for the NY State Fair. I was wondering what preset (if any) I should choose to make this app. I would also accept ideas on how to make other parts of this app. I have messed around with basic features of Mac and Mobile apps but nothing this intracite or games for that matter.

    Ooops, the thread has moved to the right spot. Good luck with your iPhone masterpiece!

  • Problème de batterie - ASUS A93 - Windows 8

    Madame, Monsieur,
    Tout d'abord, je tiens à remercier toutes les personnes qui prennent le temps d'aider les autres sur diverses questions, permettant d'avoir une vraie communauté active.
    Je me permets de vous contacter car depuis moins d'un mois, j'ai un problème avec un ordinateur ASUS A93 que j'ai acquis récemment (le 09 janvier 2013).
    Cet ordinateur était livré avec une version de windows 7 mais j'ai décidé de le mettre
    à jour et d'installer windows 8 professionnel 64 bits. L'installation s'est déroulé sans
    aucun problème.
    Cependant, suite à cette installation, je constate un problème avec la batterie. En effet,
    celle-ci ne dure pas plus de 6H, avec une utilisation très simple et en mettant le mode
    de gestion le plus bas, à savoir power4gear battery saving. (Je tiens à préciser que j'ai paramétré ce dernier mode pour qu'il soit le plus économe possible, en mettant par exemple une utilisation du processeur à un maximum de 40%). Je précise que ma conjointe dispose du même ordinateur (sous windows 7) et arrive facilement à avoir 9h de batterie, ce qui est proche des 10h annoncées.
    Concernant les utilitaires installés, j'ai pris la majorité des utilitaires et drivers adaptés pour
    Windows 8, disponibles sur le site officiel, à l'adresse suivante :
    J'ai également mis à jour le BIOS et je suis passé sous la version 203.
    Voici la fiche technique de la fnac de cet ordinateur : http://www.cbatterie.com/asus-a93-batterie.html
    J'avoue être un peu deçu que la durée de la batterie soit aussi peu élevée...Je pense que cela vient de Windows 8.
    C'est pourquoi je vous sollicite pour savoir si vous aviez éventuellement rencontré le même problème ou si vous aviez d'éventuelle solutions, tout en évitant de repasser sous windows 7 dans un premier temps...
    Merci d'avance pour votre précieuse aide..
    Bien cordialement,
    Alejandroo

    Google translate
    First, I want to thank all the people who take the time to help others on various issues, which have a real active community. I am contacting you because less than a month, I have a problem with a computer ASUS A93 I recently acquired (9 January 2013).
    This computer came with a version of Windows 7 but I decided to put Update and install 64 bit windows 8 professional. The installation went smoothly no problem. However, after the installation, I see a problem with the battery. In fact,
    it does not last more than 6H, with a very easy to use and by mode the lowest management, namely Power4Gear battery saving. (I want to say that I set it power to be the most efficient possible, for example by putting a CPU usage to a maximum of 40%). I said that my wife has the same computer (windows 7) and easily get to have 9 hours of battery, which is close to 10h announced.
    On utilities installed, I took the majority of utilities and drivers suitable for Windows 8, available on the official website at the following address: I also updated the BIOS and I passed under the 203 release. Here are the technical specifications of this computer Fnac: http://www.cbatterie.com/asus-a93-batterie.html
    I confess to being a little disappointed that the battery life is too low ... I think it comes from Windows 8. That is why I ask you whether you eventually encountered the same problem or if you had any solutions, while avoiding board under Windows 7 in a first ...Thank you in advance for your help ..
    My reply
    This is an Adobe forum for the use of Premiere Elements software
    You need to find a forum for your computer ASUS hardware
    Il s'agit d'un forum d'Adobe pour l'utilisation du logiciel Premiere Elements
    Vous avez besoin de trouver un forum pour votre matériel informatique ASUS

  • 2 simple questions on Xcode for the experts out there

    hey.  I have just started programming in C++ and am getting good results in the command line tool in xcode.
    I am trying out my own programmes based on what I am learning from a C++ book.  However, there seems to be an issue with one of the things I have learned.
    Acording to the book I can use a getline statement to allow a user to input a string with spaces such as a whole sentence instead of one word.
    Well when ever I use getline, xcode reports no errors (build succeeded) however it always skips over the getline and moves to the next part of the code.for example,
    #include <iostream>
    #include <string>
    using namespace std;
    //This is just a random example.
    int main ()
        string first;
        string last;
        cout <<"what is your first name?";
        cin >>first;
        cout <<"what is your middle and last name?";
        getline (cin, last);
        cout <<"hello"  <<first <<" " <<last;
        return 0;
    if it is my code please say.  But xcode only excepts my first name then skips right to hello. 
    It does not pause to let me input middle and last.  How can I fix this?
    Second question is I am viewing everything in the debug console.  How do I get my code to run in terminal?
    Thank you so much to everyone that answers.

    Saad Attieh wrote:
    So how do I get this to run in terminal.app? Will it run any differently?
    That is how I ran it. It runs the same.
    The easiest way is to just inspect the build output , find the temporary path it uses, and go there. For simple programs like this, you can just type them in with vi and compile with clang++.
    Oh yeah and do you know if and how I can use c++ to create a full application in Xcode?  As in what template do I choose?  According to the user guide I have to choose a carbon application template or something like that if I want to make a application with the usual quit and minimise etc buttons.  But I cannot find that so I am feeling very silly.
    Also, looking a head into the future what are the best languages to use for coding in Mac OS X?
    You should use Objective-C for building MacOS X programs. If you are building command line tools or libraries, you could just use C++. There isn't anything on the Mac that requires C++.
    If you really wanted to, you could write the Mac parts in Objective-C and your own routines in C++ and connect them with C linkage. Another option would be to use Objective-C++. The core operating system and especially user interface libraries are all designed for Objective-C. It isn't smart to fight against the system.
    In practice, C++ is just an awful language. Anything you might want to use C++ for can be more easily done in Objective-C. I spent 15 years writing C++ software. I really enjoyed it, but I realized that I enjoyed it because it was hard - like a puzzle. That approach isn't conducive to effective software development.

  • Compiled Error in Xcode for iphone game and other questions

    Dear all,
    Hi, I am a newbie of xcode and objective-c and I have a few questions regarding to the code sample of a game attached below. It is written in objective C, Xcode for iphone4 simulator. It is part of the code of 'ball bounce against brick" game. Instead of creating the image by IB, the code supposes to create (programmatically) 5 X 4 bricks using 4 different kinds of bricks pictures (bricktype1.png...). I have the bricks defined in .h file properly and method written in .m.
    My questions are for the following code:
    - (void)initializeBricks
    brickTypes[0] = @"bricktype1.png";
    brickTypes[1] = @"bricktype2.png";
    brickTypes[2] = @"bricktype3.png";
    brickTypes[3] = @"bricktype4.png";
    int count = 0;`
    for (int y = 0; y < BRICKS_HEIGHT; y++)
    for (int x = 0; x < BRICKS_WIDTH; x++)
    - Line1 UIImage *image = [ImageCache loadImage:brickTypes[count++ % 4]];
    - Line2 bricks[x][y] = [[[UIImageView alloc] initWithImage:image] autorelease];
    - Line3 CGRect newFrame = bricks[x][y].frame;
    - Line4 newFrame.origin = CGPointMake(x * 64, (y * 40) + 50);
    - Line5 bricks[x][y].frame = newFrame;
    - Line6 [self.view addSubview:bricks[x][y]]
    1) When it is compiled, error "ImageCache undeclared" in Line 1. But I have already added the png to the project. What is the problem and how to fix it? (If possible, please suggest code and explain what it does and where to put it.)
    2) How does the following in Line 1 work? Does it assign the element (name of .png) of brickType to image?
    brickTypes[count ++ % 4]
    For instance, returns one of the file name bricktype1.png to the image object? If true, what is the max value of "count", ends at 5? (as X increments 5 times for each Y). But then "count" will exceed the max 'index value' of brickTypes which is 3!
    3) In Line2, does the image object which is being allocated has a name and linked with the .png already at this line *before* it is assigned to brick[x][y]?
    4) What do Line3 and Line5 do? Why newFrame on left in line3 but appears on right in Line5?
    5) What does Line 4 do?
    Thanks
    North

    Hi North -
    macbie wrote:
    1) When it is compiled, error "ImageCache undeclared" in Line 1. ...
    UIImage *image = [ImageCache loadImage:brickTypes[count++ % 4]]; // Line 1
    The compiler is telling you it doesn't know what ImageCache refers to. Is ImageCache the name of a custom class? In that case you may have omitted #import "ImageCache.h". Else if ImageCache refers to an instance of some class, where is that declaration made? I can't tell you how to code the missing piece(s) because I can't guess the answers to these questions.
    Btw, if the png file images were already the correct size, it looks like you could substitute this for Line 1:
    UIImage *image = [UIImage imageNamed:brickTypes[count++ % 4]]; // Line 1
    2) How does the following in Line 1 work? Does it assign the element (name of .png) of brickType to image?
    brickTypes[count ++ % 4]
    Though you don't show the declaration of brickTypes, it appears to be a "C" array of NSString object pointers. Thus brickTypes[0] is the first string, and brickTypes[3] is the last string.
    The expression (count++ % 4) does two things. Firstly, the trailing ++ operator means the variable 'count' will be incremented as soon as the current expression is evaluated. Thus 'count' is zero (its initial value) the first time through the inner loop, its value is one the second time, and two the third time. The following two code blocks do exactly the same thing::
    int index = 0;
    NSString *filename = brickTypes[index++];
    int index = 0;
    NSString *filename = brickTypes[index];
    index = index + 1;
    The percent sign is the "modulus operator" so x%4 means "x modulo 4", which evaluates to the remainder after x is divided by 4. If x starts at 0, and is incremented once everytime through a loop, we'll get the following sequence of values for x%4: 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, ...
    So repeated evaluation of (brickTypes[count++ % 4]) produces the sequence: @"bricktype1.png", @"bricktype2.png", @"bricktype3.png", @"bricktype4.png", @"bricktype1.png", @"bricktype2.png", @"bricktype3.png", @"bricktype4.png", @"bricktype1.png", @"bricktype2.png", ...
    3) In Line2, does the image object which is being allocated has a name and linked with the .png already at this line *before* it is assigned to brick[x][y]?
    Line 2 allocs an object of type UIImageView and specifies the data at 'image' as the picture to be displayed by the new object. Since we immediately assign the address of the new UIImageView object to an element of the 'bricks' array, that address isn't stored in any named variable.
    The new UIImageView object is not associated with the name of the png file from which its picture originated. In fact the UIImage object which inited the UIImageView object is also not associated with that png filename. In other words, once a UIImage object is initialized from the contents of an image file, it's not possible to obtain the name of that file from the UIImage object. Note when you add a png media object to a UIImageView object in IB, the filename of the png resource will be retained and used to identify the image view object. But AFAIK, unless you explicitly save it somewhere in your code, that filename will not be available at run time.
    4) What do Line3 and Line5 do? Why newFrame on left in line3 but appears on right in Line5?
    5) What does Line 4 do?
    In Line 2 we've set the current element of 'bricks' to the address of a new UIImageView object which will display one of the 4 brick types. By default, the frame of a UIImageView object is set to the size of the image which initialized it. So after Line 2, we know that frame.size for the current array element is correct (assuming the image size of the original png file was what we want to display, or assuming that the purpose of [ImageCache loadImage:...] is to adjust the png size).
    Then in Line 3, we set the rectangle named newFrame to the frame of the current array element, i.e. to the frame of the UIImageView object whose address is stored in the current array element. So now we have a rectangle whose size (width, height) is correct for the image to be displayed. But where will this rectangle be placed on the superview? The placement of this rectangle is determined by its origin.
    Line 4 computes the origin we want. Now we have a rectangle with both the correct size and the correct origin.
    Line 5 sets the frame of the new UIImageView object to the rectangle we constructed in Lines 3 and 4. When that object is then added to the superview in Line 6, it will display an image of the correct size at the correct position.
    - Ray

  • Hello , how r u,  can i ask 1 question about xcode, i have mac os x 10.7.5 , n xcode version 4.6.3 i want build apps for ios 7.1 n mac os 1.9 ,, , but my macbook is old late 2008 macbook 4,1,  so can i develop apps for ios7 n 1.9 using xcode 4.6.3, bcz my

    hello , how r u,
    can i ask 1 question about xcode, i have mac os x 10.7.5 , n xcode version 4.6.3 i want build apps for ios 7.1 n mac os 1.9 ,, , but my macbook is old late 2008 macbook 4,1,  so can i develop apps for ios7 n 1.9 using xcode 4.6.3, bcz my machine cant upadte on 1.8 n 10.9,, ihave 2gb ram . core 2 duo pr, plz rely asap,
    thnxs

    Please type complete sentences and words.  This isn't an instant message program.
    https://developer.apple.com/support/ios/ios-dev-center.html

Maybe you are looking for

  • WVC200 1.2.0 firmware - or is it?

    Hmm, perhaps I should have left well enough alone. I've had my WVC200 working fine for a while - it emails on motion detection, and saves pics via FTP. But I moved it and thought I should check the web for updates. I got to the UK Linksys page at: ht

  • URGENT PROBLEM: Please help me if you can :(

    i am developing a symptom sorter function in JSP and MySQL, where the flow of data is: Select pain type e.g Ear Select category e.g. Hearing Problems Checkbox selections fever cough tired sick A combination of these checkbox selections should take yo

  • End User License

    I have a problem when i try to open something to print a pop out a window and said this BEFORE VIEWING PDF DOCUMENT IN THIS BROWSER YOU MUST LAUNCH ADOBE READER AND ACCEPT THE END USER LICENSE AGREEMENT THEN QUIT AND RELAUNCH THE BROWSER HEEEEEEELP

  • Importing classes with unnamed namespace

    Hi, I'm currently assigned to a class assignment that requires me to build a calculator bean using a class that was provided. Problem was, we were expected to import the provided class in an unnamed namespace - something that was possible in SDK 1.3

  • ResturnKeyLabel not working on iOS

    I am having using TextArea and TextInputs is a project where I have specified the returnKeys, but they don't work on the device. It is an iPod Touch with iOS 5. The code for same is: <s:TextInput id="mobileTxtInp"