Top "Cocoa" questions

Cocoa is Apple's application-development framework for macOS, consisting of Foundation, Application Kit, and Core Data.

How do I make and use a Queue in Objective-C?

I want to use a queue data structure in my Objective-C program. In C++ I'd use the STL queue. What …

objective-c cocoa data-structures queue
How can I set the icon for a Mac Application in Xcode?

I have been learning a lot about writing Objective-C code and designing in Interface Builder and I wanted to set …

xcode cocoa macos icons
Changing my CALayer's anchorPoint moves the view

I want to alter the anchorPoint, but keep the view in the same place. I've tried NSLog-ing self.layer.position …

iphone cocoa cocoa-touch uiview
Font size in pixels

On an iPhone how do I calculate the size of a character in pixels for a given point size?

iphone cocoa font-size typography
How to handle app URLs in a UIWebView?

I recently found that my UIWebView was choking on ITMS links. Specifically, from the UIWebView in my app, if I …

iphone cocoa ios uiwebview uiwebviewdelegate
How do copy and mutableCopy apply to NSArray and NSMutableArray?

What is the difference between copy and mutableCopy when used on either an NSArray or an NSMutableArray? This is my …

cocoa cocoa-touch nsmutablearray nsarray nscopying
Learn C first before learning Objective-C

Being an aspiring Apple developer, I want to get the opinions of the community if it is better to learn …

c objective-c cocoa
Split NSString multiple times on the same separator

I am currently receiving a string like this: @"Sam|26,Hannah|22,Adam|30,Carlie|32,Jan|54" And I am splitting it like this: …

objective-c string cocoa-touch cocoa nsstring
How do I create a NSTimer on a background thread?

I have a task that needs to be performed every 1 second. Currently I have an NSTimer firing repeatedly every 1 sec. …

objective-c cocoa nstimer nsrunloop nsblockoperation
how to use the object property of NSNotificationcenter

Could somebody please show me how to use the object property on NSNotifcationCenter. I want to be able to use …

iphone objective-c cocoa nsnotificationcenter