Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
A couple xCode questions
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="SoulRed12" data-source="post: 1037280" data-attributes="member: 146412"><p>Uh, oops =p I'll fix that.</p><p></p><p></p><p></p><p>Yeah, I tried something like that (and I just tried your NSLog's as well), it crashes. =/ (without logging anything in the console) Also endTime is indeed an NSDate; here's my header code (before fixing the method you mentioned):</p><p></p><p>[code]#import <Foundation/Foundation.h></p><p></p><p>@interface timerController : NSObject {</p><p></p><p> IBOutlet NSTextField *numOfMinutes;</p><p> IBOutlet NSLevelIndicator *timeBar;</p><p> IBOutlet NSSlider *timeSlider;</p><p> IBOutlet NSButton *toggleButton;</p><p> IBOutlet NSTextField *messageToShow;</p><p> </p><p> NSTimer *mainTimer;</p><p> NSDate *endTime;</p><p> </p><p> float startSeconds;</p><p> bool buttonState;</p><p> </p><p>}</p><p></p><p>-(IBAction)toggleTimer:(id)sender;</p><p>-(IBAction)updateTextField:(id)sender;</p><p>-(void)countDown;</p><p>-(void)timeOver;</p><p></p><p>@end[/code]</p><p></p><p></p><p>I just checked, it's the correct, non-zero value.</p><p></p><p></p><p>I suspect you're right. I just don't know what's causing it.</p><p></p><p>Thanks for all your time and help with this, I seriously appreciate it.</p></blockquote><p></p>
[QUOTE="SoulRed12, post: 1037280, member: 146412"] Uh, oops =p I'll fix that. Yeah, I tried something like that (and I just tried your NSLog's as well), it crashes. =/ (without logging anything in the console) Also endTime is indeed an NSDate; here's my header code (before fixing the method you mentioned): [code]#import <Foundation/Foundation.h> @interface timerController : NSObject { IBOutlet NSTextField *numOfMinutes; IBOutlet NSLevelIndicator *timeBar; IBOutlet NSSlider *timeSlider; IBOutlet NSButton *toggleButton; IBOutlet NSTextField *messageToShow; NSTimer *mainTimer; NSDate *endTime; float startSeconds; bool buttonState; } -(IBAction)toggleTimer:(id)sender; -(IBAction)updateTextField:(id)sender; -(void)countDown; -(void)timeOver; @end[/code] I just checked, it's the correct, non-zero value. I suspect you're right. I just don't know what's causing it. Thanks for all your time and help with this, I seriously appreciate it. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
A couple xCode questions
Top