Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lynkynpark86

macrumors 6502
Original poster
I am trying to have a user-entered time delay (that they input in minutes) and multiply it by 60 to get the number of seconds. Here's my code, but I get an error:
Code:
	int alertDelayIntPre = [alertDelayString intValue];
	int alertDelayInt = [alertDelayIntPre * 60];
I'm getting an "Expected ':' before '}' token" error, but since it's xcode, there's a 0% chance that's the actual problem. I think it's because I used "int * 60". I'm coming from years of applescript, and I thought math worked the same way, but I guess not. I HAVE been searching google and mroogle for 45 minutes now, and i got nothing. Please help me!
 
After a while everything looks like an object. ;)

B

Ha, isn't programming fun? :) There are a lot of times when certain words, like my variable or object names, start to look really really "funny" because I've typed them so many time.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.