GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:56:02 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=x86_64-apple-darwin --target=arm-apple-darwin".tty /dev/ttys001 target remote-mobile /tmp/.XcodeGDBRemote-41902-34 Switching to remote-macosx protocol mem 0x1000 0x3fffffff cache mem 0x40000000 0xffffffff none mem 0x00000000 0x0fff none [Switching to process 11779 thread 0x0] [Switching to process 11779 thread 0x0] sharedlibrary apply-load-rules all 2011-08-06 23:19:27.709 Summer Miles[795:707] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x154a70> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key miles.' *** Call stack at first throw: ( 0 CoreFoundation 0x330d364f __exceptionPreprocess + 114 1 libobjc.A.dylib 0x33592c5d objc_exception_throw + 24 2 CoreFoundation 0x330d33cd -[NSException dealloc] + 0 3 Foundation 0x3146eedb -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 182 4 Foundation 0x314279cb _NSSetUsingKeyValueSetter + 90 5 Foundation 0x31427217 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 194 6 Foundation 0x3140942f -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 130 7 UIKit 0x320bb8df -[UIRuntimeOutletConnection connect] + 66 8 CoreFoundation 0x3306bd7b -[NSObject(NSObject) performSelector:] + 18 9 CoreFoundation 0x3306b99d -[NSArray makeObjectsPerformSelector:] + 388 10 UIKit 0x320ba847 -[UINib instantiateWithOwner:options:] + 586 11 UIKit 0x320bbe09 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 92 12 UIKit 0x31ee64cd -[UIApplication _loadMainNibFile] + 96 13 UIKit 0x31ee0b09 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 180 14 UIKit 0x31eb57d7 -[UIApplication handleEvent:withNewEvent:] + 1114 15 UIKit 0x31eb5215 -[UIApplication sendEvent:] + 44 16 UIKit 0x31eb4c53 _UIApplicationHandleEvent + 5090 17 GraphicsServices 0x325c0e77 PurpleEventCallback + 666 18 CoreFoundation 0x330aaa97 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26 19 CoreFoundation 0x330ac83f __CFRunLoopDoSource1 + 166 20 CoreFoundation 0x330ad60d __CFRunLoopRun + 520 21 CoreFoundation 0x3303dec3 CFRunLoopRunSpecific + 230 22 CoreFoundation 0x3303ddcb CFRunLoopRunInMode + 58 23 UIKit 0x31edfd49 -[UIApplication _run] + 372 24 UIKit 0x31edd807 UIApplicationMain + 670 25 Summer Miles 0x00002403 main + 82 26 Summer Miles 0x000023ac start + 40 ) terminate called after throwing an instance of 'NSException' kill Current language: auto; currently objective-c quit Program ended with exit code: 0
Now Here's Summer_MilesViewController.m
//
// Summer_MilesViewController.m
// Summer Miles
//
// Created by Josh Larson on 8/6/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "Summer_MilesViewController.h"
@implementation Summer_MilesViewController
/*
For Adding Miles on to the current total this summer
*/
- (IBAction)milesAdd:(id)sender
{
miles.text = @"Hello"; }
- (void)dealloc
{
[super dealloc];
}
- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
#pragma mark - View lifecycle
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
[super viewDidLoad];
}
- (void)loadView
{
UIView *view = [[UIView alloc] init];
self.view = view;
[view release];
}
- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
@end
And Summer_MilesViewController.h
//
// Summer_MilesViewController.h
// Summer Miles
//
// Created by Josh Larson on 8/6/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface Summer_MilesViewController : UIViewController {
IBOutlet UITextField *miles;
IBOutlet UILabel *total;
}
- (IBAction)milesAdd:(id)sender;
@end
Any help would be greatly appreciated!
This post has been edited by thephpdev: 06 August 2011 - 09:25 PM

New Topic/Question
Reply


MultiQuote



|