Top "Objective-c" questions

This tag should be used only on questions that are about Objective-C features or depend on code in the language.

How do I sort an NSMutableArray with custom objects in it?

What I want to do seems pretty simple, but I can't find any answers on the web. I have an …

ios objective-c sorting cocoa-touch nsmutablearray
Passing Data between View Controllers

I'm new to iOS and Objective-C and the whole MVC paradigm and I'm stuck with the following: I have a …

ios objective-c swift model-view-controller uiviewcontroller
Generating random numbers in Objective-C

I'm a Java head mainly, and I want a way to generate a pseudo-random number between 0 and 74. In Java I …

objective-c random
What is a typedef enum in Objective-C?

I don't think I fundamentally understand what an enum is, and when to use it. For example: typedef enum { kCircle, …

objective-c enums typedef
Constants in Objective-C

I'm developing a Cocoa application, and I'm using constant NSStrings as ways to store key names for my preferences. I …

ios objective-c cocoa nsstring constants
How to convert an NSString into an NSNumber

How can I convert a NSString containing a number of any primitive data type (e.g. int, float, char, unsigned …

objective-c nsstring nsnumber primitive-types
"unrecognized selector sent to instance" error in Objective-C

I created a button and added an action for it, but as soon as it invoked, I got this error: …

objective-c selector unrecognized-selector
How do I make an HTTP request in Swift?

I read The Programming Language Swift by Apple in iBooks, but cannot figure out how to make an HTTP request (…

ios objective-c swift iphone nsurlsession
Xcode build failure "Undefined symbols for architecture x86_64"

An Xcode beginner's question: It is my first experience with Xcode 4.6.3. I am trying to write a very simple console …

objective-c xcode macos cocoa iobluetooth