Do I have the right idea?

Discussion in 'Public Game Developers Forum' started by JosephDuffy, Apr 10, 2011.

  1. JosephDuffy

    JosephDuffy Active Member

    Nov 9, 2009
    30
    0
    6
    Hi,
    I'm woking my way through "Beigining iPhone 4 Programming", and I would like to know I've got the right idea about so OOP Terms etc.
    I've posted on the books forum, but I'd like to post here, too.
    Since re-wording it wouldn't really help, I'll just post what I put there, and link you to the project I've done so far :)
    Files: http://cl.ly/5rDl
    Thanks for any help.
    Joseph Duffy
     
  2. MrLeQuack

    MrLeQuack Well-Known Member

    Well the idea is this, when you create a new class(.h,.m) you are asked if you want to also create a Nib(.xib) file, what this does is that it will link the nib to your class!
    If you open a nib file and you click on the file's owner you will see with what class it is linked, and you can also change that and link it to whatever!
    The View contains all your elements, you must connect it to your class!The same you do with other outlets, like buttons segmented control, etc.This way xcode knows about what element you are talking about!
     

Share This Page