A general question in SDK fundamentals
Morning I'm pretty new to this SDK thing but I wondered if anyone could help answer a few questions to aid my general understanding of how it all works. I've tried google but there does not seem to be a good explanation. I have to say that it strikes me as a little odd that apple have produced something so counter intuitive. I was hoping for something more like dream weaver
Ok here goes...
1. Why does Interface builder not write all the code, into the .h and .m file, so that you can see it? Does Interface builder, squirrel away the code somewhere? Is it possible to see this? For example if I add a picture in interface builder where is the code for this?
2. In the main window in IB when would I drag in an orange controller from the library? What would this do? Where would it go? Does it hook up to the viewcontoller automatically just by dragging it in
3. What is the benefit of creating a separate view file (without a .xib) in the resources folder?
4. When I write class files in Interface builder, what should I have selected? Is it files owner? If I select one of the other attributes in the view window (say a button) it seems to want to write that as an individual class file?
5. Why would I ever want to use the class definition at the top of the inspector window in Interface builder? It seems if I want something in here, it doesn't actually appear in The .h or .m file?
5. After I have written my class files, over my previous ones ( to update what I have just done in IB) how come you get rid of all the un-commented sections that were previously in the coding files? Where has this gone? Can I get it back?
Thanks in advance
Kind Regards
Alan
Last edited by a_gilbo; 11-16-2010 at 03:29 AM.
|