Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

I get a "No Editor" when I open a file on Xcode?

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)

Posted on Nov 26, 2012 11:12 AM

Reply
Question marked as Best reply

Posted on Nov 26, 2012 1:59 PM

Are there embedded spaces in the file name?

7 replies

Nov 27, 2012 8:19 AM in response to mitsmada

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

Nov 27, 2012 12:08 PM in response to disguise

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.

Nov 28, 2012 7:08 AM in response to mitsmada

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.

Nov 29, 2012 9:41 AM in response to disguise

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

I get a "No Editor" when I open a file on Xcode?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.