Well I started looking into Cocoa programming so I could develop some Mac
applications. So here is my first tutorial on how to develop using Objective-C
language.
I will post the Hello.h and the Hello.m files cause I know they are tuff to
read.
Hello.h
Hello.h
12345678910111213
// Hello.h// HelloWorldApp// Created by John Costanzo on 7/13/09.// Copyright 2009 JC Web Concepts. All rights reserved.#import @interfaceHello : NSObject{IBOutletNSTextField*textField;}-(IBAction)sayHello:(id)sender;@end
Hello.m
1234567891011121314
// Hello.m// HelloWorldApp// Created by John Costanzo on 7/13/09.// Copyright 2009 JC Web Concepts. All rights reserved.#import "Hello.h" @implementationHello-(IBAction)sayHello:(id)sender{//Say Hello[textFieldsetStringValue:@"Hello, World!"];}@end
I hope this has helped you with getting the basic of Xcode and developing an
application for the Mac. My next video on this will be tweaking the GUI to
look a little better.