Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Starting...



Hey,

I´m a new developer in iphone´s world, develop in actionScript (flash OOP) and build adGames and python too.

I always wanted to develop for mobile plataform, and now, with the iphone, wich is a good gadget, I decided to join in new and long journey.

I´m studying objective-C around one month and have some doubts.

Follows the code with the doubts:

Classe.h
#import <UIKit/UIKit.h> //importa a classe UIKit

//constuctor of the class with type NSObject that extends a UIApplicationDelegate, it is right?
@interface Classe : NSObject <UIApplicationDelegate> {
//variable type UIWindow (I think that create a screen application)

 IBOutlet UIWindow *window;
//I don´t know what is IBOutlet
}

//I don't understand this line
@property (nonatomic, retain) UIWindow *window;

@end

 
Classe.m
//importa o header (que seria o contructor da classe certo?)

//import the header (is that a constructor of the class?)
#import "teste2AppDelegate.h"

//implement the interface in content
@implementation teste2AppDelegate;

//instance window in content?
@synthesize window;

//metodo chamado quando o aplicativo é executado e não retorna nada(void), ele recebe como parâmetro um UIApplicaton (pq?)
//metod called when the application run, don´t return nothing(void), recives one parameter UIApplicaton

- (void)applicationDidFinishLaunching:(UIApplication *)application {
//create a textField
//Is it  the same that "var _txt:UITextField = new UITextField()" ???

UITextField *_txt = [[UITextField alloc] init];
[_txt setTextColor:[UIColor redColor]]; //set color in red color, this color return from UIColor class
[_txt setText:@"teste"]; //set text
}

//Why do  is metod ?
- (void)dealloc {
[window release];
[super dealloc];
}

@end

 
In my journey I understand that execute one function I use [nameFunction:param1, p:param2. Pp:param3], right?

When compiling this script don't show error and open iPhone emulator, but show a whit screen and not show the text.

Ok, any help will be good help.

Thanks…


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.