Lefora Free Forum
login join
Loading
94 views

accidentally deleted code after trying to delete break point

Page 1
(items) 1–8 of 8
rookie - member
8 posts

Hello,
I am brand new to cocoa and am using cocoa for dummies lol.
I was adding a break point and tried to delete the break point and accidentally deleted my class out of the classes folder. How do I get it back? It is greyed out under edit>undo.
thanks

regular - member
56 posts


When you delete, I think it usually says "Remove references | Move to Trash | Cancel"  (or something like that).  Provided you still have the files, you can do Add Existing Files and pull them back into the project.  If you've deleted the files, you'll have to search the trash or TimeMachine or rewrite the code.

I'm very surprised you've done that from the debugger.  I don't recall ever falling into that trap.  I usually delete break points by dragging the little blue arrow thing into the editor windows and "puffff...." it's gone (nice little animation).  I usually set them by clicking on the line-number.  Of course there's loads of ways to do many things in XCode as I'm sure you're learning.

May I ask you to share your impression of XCode and Cocoa with the forum?

__________________
rookie - member
8 posts

got it thank you

rookie - member
8 posts

Xcode and cocoa wow very cool how it adds/inserts code for you. Its like prefab buildings.
Lot to learn though

regular - member
56 posts

Interesting observation.  I think most of the 'turbo charged" GUIs do this.  DevStudio has very nice wizards, and Qt Creator and KDevelop4.  The wizards help a lot.  Emacs might even do it - real men swear by it!

For sure there is a lot to learn when you come to any of these things.  There's the language (C++, Obj/C or whatever).  Then there's the framework and its 100,000 pages + of documentation.  Then there's the debugger, installers, localization, resources and what-not.  It's a serious undertaking to learn to use these things.

The good news is however, it gets easier as you make progress.  Once you master a few classes, you'll see the same design patterns appear all over the place.  This is rather different from running a marathon where the miles seem to get longer the further you go.  It's different with software - as you learn, you run faster and more easily.

__________________
rookie - member
8 posts

Another question. I am using cocoa programming for dummies by eric tekjowski.
on page 80 chapter 4 interface builder step 6 it says to select the first item, item 1 and press command 1 to open the inspector window. when it opens it only give me the title

with amainmenu
with a check mark next to auto enable items and
        a check mark next to show state column

rookie - member
8 posts

in the example it shows

title

attrib title

tag

image

on image

off image

mix image

identation

state

key equiv


etc.....

rookie - member
8 posts

Thanks robin. amazing how quickly you resolved my issued. Again thanks for your help

Page 1
(items) 1–8 of 8

Locked Topic


You must be a member to post in this forum

Join Now!