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

chrono1081

macrumors G3
Original poster
Jan 26, 2008
8,922
6,640
Isla Nublar
Hi guys.

Sorry for the strange thread title but it best described what I'm about to ask.

I was brushing up on my Objective-C (again) and spent a good while ripping my hair out over a super simple exercise and why it wasn't working/causing xcode to do strange things.

Here, after using a command line program with scanf, I found that if I press the enter key on the number pad, my program would not process the scanf command.

If I pressed enter by my pinky (the one right below the "\" key), no problem. The program executed as normal.

Anyone know why this is? Is there a preference in xcode I can change that says to treat these two keys the same?

I usually program on windows so I don't know if this is an underlying unix thing or not : /
 
Doh! I didn't think about that haha.

The crappy keyboard I am on has them both labeled as the same thing lol.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.