Hi Acidentally locked my rootviewcontroller.h file in my application, so if i write some code
in that file it shows "Not Writable RootViewController.h", i am a beginer so please help me how to unlock that .h file.
thanks in advance
You can lock/unlock file easily by using the lock button (see below) in the text editor's navigation bar. See the XCode Workspace Guide for details.
alt text http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeWorkspace/art/navigation_bar.jpg
solution, thats small mistake,
heres a solution, this may help some beginer like me,
if u need to protect your file from editing, you can select that file , and click the lock icon, that will be appear above split window icon, in xcode,(right edge). so that u cannot make changes on that file, if u need to unlock, just click once again.
thats it,
Related
I am new to Intellij, I created an UML diagram for a class as below but didnt save it.
after closing the tab i could always see this file when i do double shift and search for files as below
Can someone tell me how to delete this UML diagram. as its bit irritating to see this all the time. Any help will be appreciated. Thanks in Advance
Your UML-Diagram is saved as an .uml file. Closing the tab does not delete it.
To find the location of the file open it and click on Select opened file.
Its the "aiming" symbol in your Project-Tab.
Then delete the file when you found it.
I am facing a problem, can anyone help me to sort this out:
Background: I have to create a backup of the code exist in the editor(Code mirror), so the use case is I have to copy the code from the editor and save it as .html file.
While using the element.getText() and writing to a file works fine but the issue is the getText()only get the code visible on the screen. Since the code lines vary so if I use javascript scrolls then it didn't work as some page on the editor (code mirror) would have 100 lines of code or some may have 2000.
Another solution I tried is to use Action class i.e mouse actions means Select all and copy i.e Keys.COMMAND, "c")).perform();
The Problem is here how can I copy the selected text to the clipboard or save the copied text to the string so that I can execute BufferedWriter class.
Would appreciate if anyone can help.
Sorry I misunderstood your question.
For the link https://codemirror.net/demo/theme.html, to get the code, I think you should first scroll to the bottom of the editor using executeScript(Scroll to bottom of div?). After that, element.getText() should give you full code.
Update: You can also select the text by clicking on the editor and then pressing Ctrl + A, after that get selected text by executing javascript on the browser (Get the Highlighted/Selected text). You can then handle the text within your test script.
I am working on xib file that has many objects, which hide each other and also change in code.
I would to make my work, and any other future programmer easier by adding comments in the xib file.
I thought of just putting some text area outside the view I'm using, but I want to make sure I'm not effecting the final executable.
Is this a valid way to do it?
1./ In interface-builder, select the object to comment, open the inspector:
in the last tab (with the (i) icon, at the bottom of the inspector panel, you'll see a note area: write your comments there. You may want to click on "show with the selection".
2./ comment in code any object that should change programmatically
So, for an independent programming class I am working in Xcode. I am using stanford's iOS development course to create a calculator. However, recently, the item mainstoryboard.storyboard has been unable to save. I removed the entitlement, which allowed the other files to save, but the storyboard has still been unable to save. I looked around on the internet a good deal, and all I've been able to dig up is that the file might be corrupted. What do I do for this? Is there anything I'm missing? I don't know what kind of context I should be providing, so please tell me if there's something you want to see.
Try to clean your derived Data and try to clean and clean the build folder (you do this with alt+clean).
If you can't save the file again try to create a new project create a storyboard. If you can't create it on this way then you have to get to the Apple Dev Forums there is a bigger Problem then.
But anyway if you create Storyboard the App only runs on iOS 5+ Devices. Not the best option imho.
Clean all targets, close Xcode, reboot your mac. Then restart Xcode and create a new iPhoneStoryboard.storyboard and try again!
I've solved in this way this problem!
You can delete the storyboard by clicking on it in the left pane and press delete button. When prompted choose delete rather than removing reference only. Then use command+n and in the popped window, choose storyboard and name it as MainStoryboard (Xcode will add .storyboard for you).
Well, as it turns out, it was a problem with not having enough memory on the server. I've been looking at all the wrong things and can go back to working on my program. Thanks for all the help, too bad it was something else.
I want something like in textmate where I can quickly navigate to a file or class
Command-Shift-O displays the "Quick Open" Window.
The 'Quick Open' shortcut was changed to Command-Shift-o (that's the letter o and not zero) in XCode 4
I don’t use TextMate, but maybe this is what you want: File -> Open Quickly… (or shift-command-D). Another useful shortcut is View -> Switch to Header/Source File (or option-command-up arrow) to switch between header file (.h) and source file (.m).
You can Cmd+Double click on an item to navigate there. Also, you can assign shortcut for either menu Edit->Find->Jump to Definition or Jump to Selection, but the behavior there is not accurate.
For anyone finding this question years after it was asked, you can jump to a file by having your cursor on the class name and typing
Cmd+^+J