New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

XCode Noob

Post Reply New Thread Subscribe

Thread Tools

Member Since: Nov 10, 2005
Posts: 123
MacGuy18 is on a distinguished road
Mac Specs: 20" iMac G5 2.0Ghz 1GB || MBP 2.0GhzCDuo 2GB || TV || iPhone || Airport Extreme

MacGuy18 is offline

I am very new to xcode and coding in general, but with the newest SDK available for the iPhone I have found myself (like many others) interested in getting started. I downloaded the application called "SimpleDrillDown" from Apple's Developers Site. Below is an example of the code as I have revised it. The only thing I have been able to do is change the titles of buttons and windows.

#import "SimpleDrillDownAppDelegate.h"
#import "MasterViewController.h"

@implementation SimpleDrillDownAppDelegate

@synthesize window;
@synthesize masterList;

- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Set up the window and content view
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

// Set up the table view controller
MasterViewController *masterController = [[MasterViewController alloc] init];
masterController.appController = self;

// Create a navigation controller using the new controller
navigationController = [[UINavigationController alloc] initWithRootViewController:masterController];
[masterController release];

// Add the navigation controller's view to the window
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];

// Create an array containing some test data
masterList = [[NSMutableArray alloc] init];
NSMutableDictionary *dictionary;
NSMutableDictionary *characters;

characters = [[NSArray alloc] initWithObjects:@"A/F Ratio", @"Spark Timing", @"Intake Air Temperature", @"Engine Speed", @"Load", @"Boost Pressure", nil];
dictionary = [[NSMutableDictionary alloc] initWithObjectsAndKeys:@"Data Logging", @"title", characters, @"mainCharacters", nil];
[masterList addObject:dictionary];
[dictionary release];
[characters release];


- (void)dealloc {

[navigationController release];
[masterList release];
[window release];
[super dealloc];


My questions are...

1) After I touch "Data Logger" I want to be able to touch, for example, "Engine Speed" and a new window come across. How do I do this?

2) In this new window I want to be able to put a slider and a button, how do I do this?

3) Also, in this new window i want to be able to have an alert come up. how do I do this?

I have read a lot of the information, but it's not helping much. I was hoping I could get some good help here.



P.S. This is an example from apple that I have played with in order to gain an understanding of how things work. I will not be using it for my personal gain. I hope this doesn't violate forum rules. If so, please delete.
QUOTE Thanks

Post Reply New Thread Subscribe

« Xcode Applications on other computers | how are "etext" and "end" defined on Darwin?? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Xcode 1.5 alejandrico OS X - Development and Darwin 0 06-03-2006 05:56 PM
newb vs. noob... a friendly reminder in the differences and connotations coach_z Schweb's Lounge 0 05-05-2006 03:51 AM
Features I miss from Visual Studio, now using xCode... RChickenMan OS X - Development and Darwin 0 10-18-2005 11:14 AM
XCode Include path problem Jove OS X - Development and Darwin 0 03-18-2005 09:41 AM
New Xcode plug-in helps developers reuse code Murlyn OS X - Development and Darwin 0 11-10-2003 12:16 PM

All times are GMT -4. The time now is 12:50 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?