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.

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.

  • 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 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.

  • 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?

  • Newbee question - Headers Footer and menus

    What is the current, best practice for building a web site with consistent menus, headers and footers etc.
    I have read good and bad about SSI, and Dreamweaver libraries etc, and would like to know where folks in the industry turn to complete this kind of task.
    I did a really simple site with php, www.canvasdoctors.com but someone told me that how I did that was overkill and not correct.
    I hope i have been clear.
    Thanks for your time.
    Ashley

    Thanks  for the quick replies.
    Now, I was just using the canvas site as an experiment.
    And my question does not reallt relate to that site but more generically to the whole web design world.
    If you were to start a whole new site, that would have lots of content, what technology is the latest and best way of managing the properties i spoke of and would allow for easy modifications to the entire site by only editing once?
    Ashley 

  • Newbee question (first of many though)

    As soon as I can break through the initial intimidation I hope to begin learning Lightroom and cataloging my 15k+ images.  Before I dive in though I'd like to begin with a handful of images and see how the program and my workflow (to be determined) will work.  If I begin with an external flash drive and let's say 100 images just to learn a few things can I safely delete all traces and tracks of those images in the program before I begin my major work or is it advisable to simply uninstall the program then reinstall a fresh copy?  Thanks.  Looking forward to everyones help and generosity.
    Andrew

    Hi andyboy2. I believe your question is quite easily resolved. To remove a photo from the catalog, right click it in the film strip or grid view (in any module) This will bring up a series of choices, one of which is 'delete photo....' Clicking on this brings up a dialog box that gives you the choice of deleting the photo from disk (your hard drive) or just removing it from the catalog. Choose either the 'Delete from Disk' button for the 'Remove' button. (There is also a cancel button)  Good Luck. LR is a lot to wrap your head around at first.

  • Newbee questions about XE application builder

    Hi
    I find that Oracle support someting that we can use to build some real database driven applications
    i have some questions about it :
    1-Does this application builder differ from Oracle 10g R2 Application builder ? i means is it limited ?
    2-Does any one use it to build a real world application that works some where in some business place ?
    3-what is its behind code and technology , does it use JSF and managed Beans ? how i can see the generted codes ?
    Thanks

    Hello,
    Here's the link to the Application Express Forum Oracle Application Express (APEX)
    You should also look at the Application Express OTN page, http://www.oracle.com/technology/products/database/application_express/index.html there is howtos tutorials all sorts of good stuff.
    Carl

  • 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

  • Newbee - question fpr scripting

    Hi, I'm new to scripting Acrobat and JavaScript (besides some Web-JS), but familiar to scripting InDesign (CS to CS3 with AppleScript). Now I'm on the challenge to do some Acrobat scripting.
    Please let me know, if my problem could basicallybe solved with Acrobat scripting and please give me a bit of a startup.
    I want to create an image check. Distiller converts the images to PDF. So I need to access the image in the PDF and extract information like: resolution, dimensions, color space, color profile.
    I expect some problems, when pixel images where placed into a vector graphic. So I need the information, that blabla.eps is vector graphic, but contains pixel images with resolution, dimension, color space, color profile.
    Do I have a chance to do such a thing by scripting?
    Or does anybody has some other solution to this?
    Thanks
    Tobias

    What you are looking to do cannot be achieved through script, but could be accomplished in C/C++ as a plug-in with the freely available Acrobat SDK.
    http://www.adobe.com/devnet/acrobat/

  • Possible newbee question

    I am thinking of buying apple tv and will mainly be streaming from my imac.
    I have a wireless router.
    I assume to rent a film the stream will go from the router to apple tv.
    If streaming from my mac does the stream then go from my mac direct to apple tv ?
    In other words the only leads will be the apple TV power lead and hdmi from apple tv to my tv.

    I went and bought ATV and everything sorted just one problem I have is that I have just lost my HD on my mac and got a new one and replaced all my photos. I have synced the photos to my ATV but they are just in one group. As I have best part of 8000 photos its is impossible to view any easily. I was expecting the events to be carried over from iphoto and making things easier to navigate.
    Is it because when recovering my hard drive its classed the photos as being all one date ?
    Whats the best way to order photos on ATV.
    Cheers

  • Waveburner Newbee question on plugin use.

    Just attempting to do my first master on a trial basis.I have Waveburner but used it only once to burn a CD & not really 'master'.I have mixed & bounced 10 songs.Now I need to master those 10 songs with softwares like Ozone etc that I have.For mastering each song do I first import into a new logic project & then master it or do I do all songs on Wave burner?I presume it would be a good idea to import it into logic & get that induvidual song mastered & then import it into wave burner & do an overall master (using eqs,etc) to get a balance between all songs.Do let me know which would be the right approcach.Is it possible to use different plugins for different songs on wave burner or will the plugins that I use for 1 song affect all the 10 songs at the same time?
    I know I sound very ameteur & from what you hear, mastering myself may not be a good idea.But I want to give it a shot so do give me some basic guidance.Too many videos on youtube & too many books out there on mastering is just too much to handle ! So I will start with your opinion.
    Thanks

    Mastering your own mix is like writing a critique on whther your girlfriend (boyfriend) is pretty (handsome), and what would you change? You get so close to it that it becomes difficult to tell. Plus you are (presumably) mastering in the same room as you have mixed it in, so you actually have the possiblility of compounding your room deficiencies. Plus, it's quite a different skill, and requires a much more logical, reasoned and scientific ear. Most producers and artists run on emotion. It's much better to have someone else who has the tools, skill sets, cool head and detached ear to review what you have done .
    BUT
    If you must (and some of us must, for various reasons) you could do it in Logic, or equally easily in Waveburner. You really haven't looked at it much, have you? You can of course separately assign plugins region by region (i.e. song by song) as well as plugins to the overall collection (mix plugins). It's actually a great tool, because you can check the songs against one another while still tweaking the settings. And then maybe have a final safety limiter very gently on the whole project. Or not, if you are philosophically opposed. In the menu in each case, you have audio units plugs (3rd party) and waveburner plugs (Logic).
    Bravey go....

Maybe you are looking for

  • ICloud and Multiple Apple ID Mess

    Hi, I seem to have made a mess of my iCloud and AppleID accounts.  Here's the timeline: Years ago when I got my first iphone (3G), and being a canadian customer, 1) I signed up for a US appleID with primary emailA so I can access the US iTunes store

  • People tinted red in photos

    Ever since I have had my Rhyme, the skin on people is tinted red in the photo I've taken.  I've tried adjusting the settings, but I can't seem to make it go away.  It's very frustrating.  Am I the only one having this problem?

  • Problem with csv imports

    Hi all, When I import a csv file, numbers puts spaces between all of the characters, and consequently doesn't recognise numbers as numbers. I know you can get rid of these by the Find and search method, but it's a bit clunky, and it takes all of the

  • SetMapLegend

    Hi I am trying to use the setMapLegend method in MapViewer to create a map legend. But there is only headlines for each symbol not the symbol itself that is written. I post the code below. What could be wrong so the symbols are not written? String im

  • Lots of frustrations with iTunes...please help?

    I've had my iPod for forever[it's a mini..i'm not sure how many GBs...maybe 2? 4? It holds 1,000 songs ;)], and just recently I got it working again. I reset it, because I wanted to completely start over with adding songs to it. I updated everything