XCode 3.1, debugging, n00b question

I apologize in advance but I am completely new to Mac programming and Objective C. I have been following the Foundation tutorial from CocoaLab.com (the Become An X Coder, specifically this part http://www.cocoalab.com/?q=node/11) and have hit a small stumbling block that I believe is related to running XCode 3.1 and not the older version from the tutorial.
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
NSLog(@"Julia is my favourite actress") //Whoops, forgot the semicolon!
[pool drain]; //[2.9]
return 0;
My issue is that I don't have numbers in my left margin corresponding to my lines of code. Nor do I get any error messages when I click "Build and Go", even if I purposely leave out a semicolon or other symbol. The tutorial also references a "Run Log window" but I don't know what or where that is either.
Is there something that I might have done to turn off the error messages by accident? To the best of my knowledge, XCode is running with all the default settings (I have not changed any willingly).
Thanks for any info you can provide to help me with my id10t error
JMF

EDIT: After changing the setting per your instructions and relaunching XCode, it now seems to be working. I didn't think I'd have to restart XCode for the settings to take effect. Why aren't these features (displaying the numbers for the lines of code and error messaging) automatically enabled when XCode is installed? It seems counter-intuitive to me.
In any event, *THANK YOU* so much for you replies and help. GREATLY appreciated!
Thanks again, it was set to 'Never' and I changed it to Errors and Warnings. Are there specific settings you recommend for Errors and Warnings Smartgroup and Message Bubbles?
After building and running the app (still without the semicolon), XCode still claims a successful build and displays no known errors. I'm not sure what I have set wrong or what I am doing wrong (apart from willfully leaving out the semicolon per the tutorial's instructions) but I still don't get any error messages from Xcode 3.1.
Has this feature:
http://www.cocoalab.com/media/becomeanxcoder/05/05parseerror.png
been removed from Xcode 3.1 and replaced with something else?
Again, thank you very much for all your help. I'm extremely grateful.
Message was edited by: JMF

Similar Messages

  • If I upgrade my iOS from 5.1 to 6.0 then do I have to upgrade my Xcode also? So my question is all my old Xcode project which I have tried with Xcode 4.3.2 will be still there because I do not want to destroy them.

    I have xcode 4.3.2 and  iOS simulator Version 5.1 (272.21). But this course is on iOS 6. If I upgrade my iOS from 5.1 to 6.0 then do I have to upgrade my Xcode also? So my question is all my old Xcode project which I have tried with Xcode 4.3.2 will be still there because I do not want to destroy them.
    I have a MacBook Pro (Software Mac OS X Lion 10.7.5 (11G63b). Please let me know about upgrading iOS version so that I will be able to do the class project.

    To program for iOS 6, you need iOS 6 SDK. You need to download Xcode 4.5.x. But don't worry. All your previous projects are still alive and you are able to open them in the new Xcode.

  • File-based debugging problem/question.

    I've encountered a few different issues trying to employ this feature in conjunction with SVN:
    - In Version 3.0.04, I don't get the option to compile or run my .pkb or .plb files - when opened, they open in a regular worksheet rather than a PL/SQL editor.
    - In Version 3.0.03, I can successfully compile and place breakpoints in my .pkb files. However, when I attempt to debug, I get a message along the lines of:
    "Target MY_PACKAGE.pkb is not runnable, using default target MY_PACKAGE."
    which then moves me from my file to the actual package for the debug, which works but is kind of confusing.
    My first question is if the issue I'm having with 3.0.04 is a regression, or if it's something that I'm doing wrong. My second question is if anybody has had more success using this feature than I have. I'd appreciate any insight as there seems to be very little documentation of this feature thus far.
    Thanks,
    Charlie

    Let simplify the matter and restrict discussion to sqldeveloper-3.0.04.61 only. In my experience both .pkb and .plb files open in PL/SQL editor, not SQL worksheet. Can you try it on really simple source, such as
    create or replace
    package body "TEST_PACK" is
    function TEST_FUNC( P_ARG1 IN NUMBER
    ) RETURN VARCHAR2
    AS
    I INTEGER;
    BEGIN
    i := 1;
    null;
    end TEST_FUNC;
    procedure TEST( P_ARG1 IN VARCHAR2
    ,P_ARG2 IN NUMBER
    as
    begin
    null;
    end TEST;
    end "TEST_PACK";
    After saving this file in the filesystem as test_pack.plb, does it open in PL/SQL editor? Then after pressing compile toolbar button, what is the content of Application Data/SQL Developer/System3.0.04.61/o.sqldeveloper11.1.2.4.61/project.qbql?

  • Xcode: how to debug an application as root ?

    Hello,
    I need to debug an application that must be ran as root. Is it possible to do it with Xcode ? If yes, how ?
    Thanks in advance for any help.

    Remote debugging is one (the ?) solution, with root@localhost as the "Connect to" parameter.
    http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuid e/Contents/Resources/en.lproj/0602_db_set_up_debug/chapter_40_section3.html
    http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuid e/Contents/Resources/en.lproj/0607_db_remote_debug/chapter_45_section_1.html#//appleref/doc/uid/TP40002704-CEGDDHBH
    iMac G5 Mac OS X (10.4.7)

  • N00b question about UCM/Stellant

    Hi,
    I'm a total UCM/Stellant n00b so please forgive me if these questions seem very basic.
    I've successfully installed Oracle Content Server 10gR3 (10.1.3.3.3). I was able to create a new content item which is just an image. However, I am having trouble publishing it to a file system. A Google search indicated that I may need the Content Publisher module to do any publishing. I searched Oracle&rsquo;s content management download site and can&rsquo;t find anything on Content Publisher.
    Do I need this "Content Publisher" thing to publish to a file system or am I missing something more obvious?
    Thanks,
    Chris Bucchere
    http://www.thebdgway.com

    Well, other CMSs that I've used tend to work like this:
    1) You build a form
    2) You build a presentation template
    3) You fill out the form with data
    4) You associate the form with the appropriate presentation template
    5) You hit "publish" (or something to that effect)
    When the "publish" occurs, the CMS grabs the data you entered in the form, formats it using the presentation template and generates a resulting piece of static content, be that an HTML page, a Word document, or whatever.
    When I say "publish to the file system" I essentially mean that in Stellent I've accomplished steps 1-4 and I can't figure out how to do step 5 without going back and installing additional products like "Content Publisher," whatever that is. I just want to be able to see the resulting static HTML from a "publish" action on my file system somewhere. That's all.
    Again, forgive me if I'm being ignorant. I've worked with Hablador (Plumtree Publisher), Radiant CMS and a few others (including a homegrown CMS that I built in Ruby on Rails), but I've never used Stellent before.

  • N00b question about the ABS

    Hey, I am new to Arch and I'm about to install it on my machine (used it a bit in a virtual machine) and I have a small nooby question about the ABS.
    According to the wiki: https://wiki.archlinux.org/index.php/Arch_Build_System
    "Running abs as root creates the ABS tree by synchronizing with the Arch Linux server."
    Does this mean that the ABS tree (not the package) is always downloaded from the official Arch Linux servers, never from any of the mirrors?

    jomasti wrote:
    ANOKNUSA wrote:makepkg is part of the abs package.
    You might be confusing that with makeworld. makepkg is included with pacman.
    Anyway, gregor, you are confusing the AUR with ABS. Although, what you are saying is still possible via the source files when looking up a package on https://www.archlinux.org/packages/. But with both, using a program or using the respective page is a personal choice.
    Yup, you're right.  My mistake.

  • Want to laugh? Read my n00b question..

    Hi,
    Ok, I found out that the a class contained in a Jar file I downloaded contains some methods I almost could use out of the box. I just need to modify one of the methods, and then I am good to go.
    So, silly me I thought I could make a class of my own in my own package, that extends the class I found in the Jar. However this does not seem to work, so I guess I .. am not getting it.
    I am importing the class that I am trying to extend.
    If you havent died laughing of this silly problem, could you give me a hint what I am doing soo wrong and how I can solve it? Is extending classes limited to the same package? Can I only extend abstract classes or interfaces? What is it that I do not get?
    /bush

    there are a couple reasons you might not be able to
    extend a class:
    1. It is declared final
    2. It has declared private or protected
    constructors, but no public constructors
    Look at the compiler error message to find out why
    for sure.
    - AdamActually, a better way to answer this question would have been to describe the requirements for you to be ABLE to extend a class:
    1. The class must not have been declared final (final is a keyword that explicitly prevents you from subclassing it).
    2. The class must be visible to you from the package where you attempt to subclass it from. Therefore, since you are working in a different package, the class must be declared as public.
    3. Since a constructor (either explicitly or implicitly) must call a constructor of the super class, there must be at least one visible constructor to call - otherwise you can't subclass it. That one visible constructor CAN be the default constructor, though, if no constructors are actually explicitly defined.
    4. Furthermore, you will want to make sure that the methods you wish to override are not final or static, and are visible from the package you are developing your class it. These don't prevent you from subclassing the class in question, but the DO make it pointless to do so.
    - Adam

  • N00b question re: Library.iPhoto

    Hi everyone,
    Been lurking here for a couple of weeks and haven't seen this addressed yet...
    I'm testing the waters with iPhoto after M$ bought up my favourite cataloging app iView, and I've a question about the files "Library.iPhoto" and "Library6.iPhoto" within the iPhoto Library Package.
    Are these the database files for my Photos? If they were to become corrupt could I trash them?
    My thinking is that iPhoto would rebuild the files upon relaunch but I don't to test that until I know a little more of what I'm talking about.
    Thanks in advance for any direction on this...

    It's not that complicated, and you know, the size of the photos - whether they come from a camera phone or a 20 megapixel dslr doesn't matter a whit.
    If the database files get corrupted you have three courses of action - and I suggest you would use them in this order:
    1. Copy the library6.iphoto file from a back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    if that's not possible:
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    If that didn't work:
    3. You would need to create and populate a new library.
    To create and populate a new library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    So, those are your options in the event of a database failure.
    Note that your photos, which are stored in the Finder are not affected by the database file being damaged.
    Yes, email is easier with iPhoto (and the same is true of Aperture too)
    There are many, many ways to access your files in iPhoto:
    For 10.5 users: You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use THIS
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto. With 10.5 you can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use THIS
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • A few n00b questions........ but, i beg for answers

    i bought my fifth generation iPOD yesterday, i downloaded iTUNES, i also learned how to add music (manually), but there are a few things that are killing me, and im desperate to find out the questions:
    1. how can i add photos to my iPOD without deleting or overwriting the photos i added the last time?
    2. IMPORTANT: ive got a downloaded limewire movie (Unleashed- Jet Li. avi) but i cant seem to be able to add it to my library, please gimme the steps.....
    3. MOST IMPORTANT: i've converted 2 video clips for use with iPOD (Buttons - ***** Cat Dolls, Hotel - Cassidy), but when i play them on my iPOD and also on iTUNES, the video is perfect picture, but the is no sound at all.... and i guarantee u that before converting there was SOUND !!!
    please help me out, but plz dont send me faqs or manuals, i need direct answers, cuz im bad at searchin ........ but i beg of u to help ....
    thanx in advance !!!!!!

    On your first question, I am not exactly sure on a Windows machine, but I think you simply tell iTunes in the preferences to use whatever folder you want, default probably the My Photos folder. Then iTunes simply matches the iPod to that folder. So if you add new photos, as long as you leave the others, only the new ones are added to the iPod and the others left as is. Try it and see.
    One question #2...
    GUIDES TO: Converting Video for iPod - Mac & Window
    http://forums.ilounge.com/showthread.php?s=&threadid=123067
    And for question #3, you might try MPEG STREAMCLIP which is good at converting MPEG files with MUX'd Audio which iPods (and iMovie for Mac users) have trouble with.
    Patrick

  • Another N00b question....

    ... sorry for these beginner questions! I searched the Adobe help and did a Google but no clear answer.....
    I have several sequences in my project and would like to apply all of the effects that I applied to the first sequence to all of the other sequences in my project. Is there a setting somewhere that will do this for me?
    Thanks in advance,
    Rich

    Rich,
    We are very fortunate to have Todd from Adobe around here now. He is the Adobe Help expert, and works hard to improve Help files. If you have a moment, please outline your search criteria, and what results you got. Could be as simple as a boolean error, but might be something that Todd would want to look into. On our parts, adding info like that is a bit more typing, but with Todd's eyes viewing, it might help others in the future.
    Good luck, and thanks for taking the time to add a few more details, even though you have your answer.
    Hunt
    PS - don't tell Todd, but I am still a fan of books, and miss my Adobe printed manuals greatly. Still, I see the benefit of an evergreen, almost instantly updated electronic Help file. They just don't smell the same as my books...

  • N00b question - about O/C g4ti4200 no hw mods...

    Is there any tool that you can overclock your card like at Leadtek....?
    3d TurboExperience?
    THX , and sorry for n00bized question :D

    just use coolbits with nvidias drivers
    http://www.overclockers.com.au/techstuff/a_coolbits/

  • N00b question: pkgadd behaves strange

    Complete n00b with Solaris; so please be mersiful. After a fresh Solaris 10 install I had to run a script that required curl and curl was not available. So I went to sun's freeware site (http://www.sun.com/software/solaris/freeware/s10pkgs_download.xml) and downloaded SFWcurl.pkg.bz2; after unbzipping it, I've got SFWcurl.pkg. Any attempt to follow the instructions given on Suns Freeware page gave errors:
    # bunzip2 SFWcurl.pkg.bz2
    # pkgadd -d SFWcurl
    pkgadd: ERROR: attempt to process datastream failed
        - open of <SFWcurl> failed, errno=2
    pkgadd: ERROR: could not process datastream from <SFWcurl>Finally, I tried
    # pkgadd -d SFWcurl.pkgand it worked out, but this seems to contradict the instructions on the above mentioned page... any comments? Thank you in advance!
    One more thing: I miss (ohhh how BADLY I MISS) my linux bash auto completion and command history... where have they gone?? Any chance to got them back in Solaris?? How?
    Thanks again!
    yassen

    Apparently the install instructions on
    sunfreeware.com are incorrect, the correct command in
    this case is pkgadd -d SFWcurl just as you typed it.It's not sunfreeware.com, it's Sun's web page. (and I think you meant 'pkgadd -d SFWcurl.pkg'). The instructions on sunfreeware.com are correct for their packages.
    Looks to me like the package and the compressed zip of it have been renamed since the documentation was written. In the docs, neither the compressed file nor the uncompressed pkgstream file have the '.pkg' portion in their name, but in the poster's comments, they all do.
    It should probably be reported as a documentation bug on that page.
    Darren

  • N00B question Re: Tuner

    Ok, I have the hang of Logic Studio, I think, but the other day, I needed to bring up a tuner, and I couldn't find one. I rummaged through Logic Studio's help, through Apple's Support page, but I couldn't find anything. My question is, how would I go about summoning a tuner?

    It is a plug-in. You can find it under the Metering category...
    Paul

  • Debug player questions

    Hi,
    I am just trying player 11.1 on linux (before I was using 10.0) and was quite disappointed that the new player no longer stops at an exception but just writes it to the log file.
    Is there any way to configure this behaviour?
    Another one: I sort of understand that Adobe fixed the name of the log file to prevent evil natures from pointing the mm.cfg file at weird places. However, both the old and the new way do not really help if you are trying to debug two separate flash applications, each one running in standalone player and writing to the log. Is there any way around?

    Hi,
    thanks for responding.
    for the first point: you say that player 11 just catches unhandled exceptions (those that used to popup a window with a stack trace and pause execution) and writes the message to tracelog. So I could probably add my own handler instead. Is there a simple way to get the full stack trace from user code? Is there a way to pause execution?
    I am asking about pausing, because I recall a situation where the same swf with a bug inside enterframe code running on linux would just show the error, while running inside flash professional I really had to cycle power ... 3 fingers would show the windows page that leads to task manager, but the next error event would put the flash window in the foreground
    logging: I used this approach a couple of years ago - it was the only way to get debug messages from a browser in linux at that time. The downsides of  this approach: a) output would end in a window rather than in a file. b) I could not use trace() but rather had to call a function of my own. Today, I feel that a) would need a process that dumps received data to a server script, but how about b) I recall somebody was talking about preloading code. Would it be possible to override global function trace() this way?

  • N00b questions about the 5530 XpressMusic: Nokia M...

    Hello,
    Got a Nokia 5530 a few days ago. It's my first "smartphone", although I've owned other Nokia regular handsets before.
    I got Nokia Messaging working, but it was cumbersome. I thought Nokia Messaging would show up as an application, but it's kind of hidden when you set it up. At least, if you display e-mail on the home screen, you have access to your e-mail.
    I also downloaded (from the 5530's interface) and installed some Ovi Store applications, but now, every time I try downloading one, I get "download failed."
    I installed Nokia PC Suite and Ovi Suite. They both appear to be able to sync data, but only PC Suite appears to install applications to the 5530, but Ovi Suite doesn't? What else is Ovi Suite good for, other than syncing? When I access the Ovi Store on the Web, I can only send a text link about the app to my phone.
    Should I just restore factory settings on my 5530 and start over?
    Sorry for so many questions!
    Solved!
    Go to Solution.

    Hi, I don't use Nokia messaging, prefer the standard email system, works fine. With Ovi store try removing and re-install. To install apps with Ovi suite right click on the file you want to install and select 'open with' then select Ovi Suite. You can also access Ovi store through your phones browser and download direct. If you use Hotmail I would also recomend the MSN app from Ovi, works really well .Finally if all else fails a hard reset fixws most problems but it is a pain re-setting up your phone, and back up first !
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

Maybe you are looking for

  • Problem with display/layout of Portal-Favorites

    Hi community I've got a little display problem of the Favorites iView in the Portal. Below you can see three different screenshots of the Portal Favorites. Please disregard the Links itself, the problem is in the border/layout of the whole thing. [Sc

  • Problem logical column calculation

    Hi, I've a logical table with 2 datasources DS1 and DS2 with this definition DS1: Physical table TABLE_A, where condition: TABLE_A.A_YEAR = EXTRACT(YEAR FROM CURRENT_DATE) DS2: Physical table TABLE_A, where condition: TABLE_A.A_YEAR = EXTRACT(YEAR FR

  • Reports compilation

    Hi, At work, it is usually we developer compile the reports and save to rdf file in Oracle reports developer 9i, and then DBA copies it to the server. Now I am required to recompile all the existing reports, around 60 rdf files due to some fundamenta

  • Xserve RAID won't RAID in disk utility

    I have a XServe RAID that won't RAID in disk utility. The XServe is fully populated and there are two arrays created. Both of those arrays show up in disk utility and will only be partitioned with an Apple Partition Map. If I try to partition them GU

  • Default movie type

    Yet another annoying iTunes 11 "feature" that no one wanted... All the movies I've ripped from DVDs up until now are called "Movies". Now any new ones I add are called "Home Videos", and I have to change them back to "Movies" by hand to get them into