I need to compare two numbers in a cocoa application, but it doesn't allow me to use the regular signs (>=, <=, <, >) nor will it let me use isGreaterThanOrEqualTo:[] (Which, I undestand only takes an object, but I thought I would try it). So can someone please tell me how you accomplish this? Thank you in advance.
pars99 0 Junior Poster in Training
Recommended Answers
Jump to PostObjective C is a bit tricky with numbers, you can mix it with C but the NSNumbers are tricky. Check out the NSNumbers and operators, you have to assign the values of the NSNumber to a variable and then you cand use this aritmethic operations.
All 4 Replies
Anima Templi 0 Junior Poster in Training
pars99 0 Junior Poster in Training
gusano79 247 Posting Shark
Szabi Zsoldos 26 Learner and helper guy
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.