objective (7,494)


Choosing a static code analysis tool

Choosing a static code analysis tool

I'm working on a project where I'm coding in C in a UNIX environment. I've been using the lint tool to check my source code. Lint has been around a long time(since 1979), can anyone suggest a more re…


iphone Understanding reference counting with Cocoa and Objective-C

I'm just beginning to have a look at Objective-C and Cocoa with a view to playing with the iPhone SDK. I'm reasonably comfortable with C's malloc and free concept, but Cocoa's references counting sche…



ios How to programmatically send SMS on the iPhone?

Does anybody know if it's possible, and how, to programmatically send a SMS from the iPhone, with the official SDK/Cocoa Touch?…


Objective-C/Cocoa: How do I accept a bad server certificate?

Using NSURLRequest, I am trying to access a web site that has an expired certificate. When I send the request, my connection:didFailWithError delegate method is invoked with the following info:-1203…


What tools do you use for static code analysis?

This question on Cyclomatic Complexity made me think more about static code analysis. Analyzing code complexity and consistency is occasionally useful, and I'd like to start doing it more. What too…


objective What's the difference between a string constant and a string literal?

I'm learning objective-C and Cocoa and have come across this statement: The Cocoa frameworks expect that global string constants rather than string literals are used for dictionary keys, notification…


What does the @ symbol represent in objective-c?

I'm learning objective-c and keep bumping into the @ symbol. It is used in different scenarios, for example at the start of a string or to synthesise accessor methods. What's does the @ symbol mean i…


iPhone app that access the Core Location framework over web

I was wondering if I could access the iPhones Core Location framework over a website? My goal is to build a webapp/website that the iPhone would browse to, then upload its current GPS location. This…


What is the best way to unit test Objective-C code?

What frameworks exist to unit test Objective-C code? I would like a framework that integrates nicely with Apple Xcode.…


objective How do you set your Cocoa application as the default web browser?

How do you set your Cocoa application as the default web browser? I want to create an application that is launched by default when the user clicks on an HTTP or HTTPS link in other applications(Mail,…




swift ios example tutorial how programmatically from xcode view not