Begin forwarded message:
From: Eric Lee <ericlee1...@gmail.com>
Date: December 17, 2008 3:02:40 PM CST
To: Ken Thomases <k...@codeweavers.com>
Subject: Re: NSTimer help
Thanks...i hadn't realized there was a -
(void)windowShouldClose..but now I have another problem.
I have implemented an if/else statement so that I can determine if
something is happening
However, even though the if statement is true, the window never
closes:
Here's the code...thanks
- (void)windowShouldClose:(id)window
{
if ([[textField stringValue] isEqualTo: @"0:00:00" || @"0.00000" ]) {
[mainWindow windowShouldClose:YES];
}
else {
NSAlert *alert;
alert = [NSAlert alertWithMessageText:@"Error!" defaultButton:nil
alternateButton:nil otherButton:nil
informativeTextWithFormat:@"Please stop the timer."];
[alert runModal];
[mainWindow windowShouldClose:NO];
}
}
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com