7 Replies Latest reply: Nov 29, 2012 12:51 PM by disguise
mitsmada Level 1 Level 1 (0 points)

Hi gang, I'm new to the forum so my apologies if the question has already been asked.

I keep getting a No Editor every time I reopen my files in xcode? I've trolled online forums for

solutions but none seem to help.

 

Thanks in advance.

 

OsX 10.8.2 xcode 4.5.2 (4g2008a)

  • 1. Re: I get a "No Editor" when I open a file on Xcode?
    disguise Level 2 Level 2 (345 points)

    Are there embedded spaces in the file  name?

  • 2. Re: I get a "No Editor" when I open a file on Xcode?
    mitsmada Level 1 Level 1 (0 points)

    No unfortunatly that's not the problem. I only use underlines for spacing.

    Thank you for the reply any other ideas?

  • 3. Re: I get a "No Editor" when I open a file on Xcode?
    disguise Level 2 Level 2 (345 points)

    I'll throw out some ideas I've gleaned from the net - you've probably already tried them - I'm guessing here.

     

    1) Try pressing <Command><1> - Show Project Navigator

     

    from this link xcode4 - Trying to open project in xCode 4 - Stack Overflow

     

    I'm guessing that these are individual files that cause your problem and not the entire project?

     

    Tell me the file extension of the affected files. Or does it happen for all files?

     

    (You can tell I've never had this problem myself.)

     

    Here's some info from the Xcode documentation:

     

    "Xcode provides viewers to display some files for which it has no editor (some audio, video, and graphics files, for example). If you select a file for which Xcode does not have an editor or viewer, Xcode attempts to display the file using the same Quick Look facility used by the Finder."

     

    What happens when you try to open one of these source files in the Finder?

     

    2) Try double-clicking on the file to launch an editor in a separate window.

     

    ...yet another piece of info...

     

    "Note: Sometimes an editor pane may display the message “No Editor.” This means that there is no file selected in the detail view or the Groups & Files list."

  • 4. Re: I get a "No Editor" when I open a file on Xcode?
    mitsmada Level 1 Level 1 (0 points)

    The file extensions are .xcodeproj or .c files.

     

    I've added an attachment and a screen shot to show the problem I'm having .

    If I open the .c file I can build the project but I can't run it and if I open

    the .xcodeproj file I get the "No Editor" warning but on the editor screen.

     

     

    Thanks disguise for your patience with assisting me, this is only my second semester

    of programming.

  • 5. Re: I get a "No Editor" when I open a file on Xcode?
    disguise Level 2 Level 2 (345 points)

    1) When you created this project I'm assuming you used Xcode -> File -> New Project?

     

         What kind of project did you create?

     

    2) When you created the .c file, I'm assuming you used Xcode -> File -> New File -> .c File ?

     

    3) Is this project something you downloaded from somewhere?

     

    If this is the case, try creating a project through Xcode, Add new .c files as needed and copy and paste the source code.

  • 6. Re: I get a "No Editor" when I open a file on Xcode?
    mitsmada Level 1 Level 1 (0 points)

    I'm using file > new > project > command line tool > create or add to file. I think but not positive that I need to

    select project instead of target in the build settings pane. Could that be causing the problems?

     

    To be honest with you, I'm not sure how I'm creating the .c file but all the projects are a combination of downloaded material and new projects from scratch.

     

    Thank you

  • 7. Re: I get a "No Editor" when I open a file on Xcode?
    disguise Level 2 Level 2 (345 points)

    If the project has a small number of .c files I would try starting from scratch.

     

    Create a brand new project.

     

    Then add new .c files,  Copy and Paste the contents from the original source code into the new files.