| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Nov 10, 2005
Posts: 123
![]() Mac Specs: 20" iMac G5 2.0Ghz 1GB || MBP 2.0GhzCDuo 2GB || TV || iPhone || Airport Extreme
|
Anybody,
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]; } @end ================================ 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. Thanks, -- MacGuy18 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 |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
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 07:06 AM.
Powered by vBulletin