Noob Question about COCOA code structure

Discussion in 'iOS Programming' started by LordZartek, Nov 20, 2008.

  1. LordZartek macrumors newbie

    Nov 1, 2008
    Im assuming that the hierarchy of a class/subclass relationship is the attributes you can assign to objects right? however how do you find out the code for those attributes, like if i wanted to tell the text that appears in the text field to stream across, how would give that attribute to this code?

    #import <UIKit/UIKit.h>

    @interface Basic_iPhone_AppAppDelegate : NSObject <UIApplicationDelegate>
    IBOutlet UIWindow *window;
    IBOutlet UITextField *textField; //would it be entered here???
    IBOutlet UILabel *label; // or in between this code with brackets?

    @property (nonatomic, retain) IBOutlet UIWindow *window;

    - (IBAction)click:(id)sender;

  2. johnnybluejeans macrumors 6502

    Jan 16, 2006
    New York, NY
    I've read your question a few times, and I still almost don't understand what you are asking. Either way, I think that the best thing you can do for yourself is to read a Objective-C / Cocoa primer. Apple has plenty of docs on their development site that you can read, even if you are not part of the iPhone dev program.
  3. jnic macrumors 6502a

    Oct 24, 2008

Share This Page