Top "Cocoa" questions

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

How do I get the current date in Cocoa

I'm getting started developing for the iPhone and as such I am looking at different tutorials online as well as …

objective-c cocoa nsdate
CSS Printing: Avoiding cut-in-half DIVs between pages?

I'm writing a plug-in for a piece of software that takes a big collection of items and pops them into …

css cocoa printing page-break
Execute a terminal command from a Cocoa app

How can I execute a terminal command (like grep) from my Objective-C Cocoa application?

objective-c cocoa macos
What are best practices that you use when writing Objective-C and Cocoa?

I know about the HIG (which is quite handy!), but what programming practices do you use when writing Objective-C, and …

iphone objective-c cocoa cocoa-touch ios
Check that an email address is valid on iOS

Possible Duplicate: Best practices for validating email address in Objective-C on iOS 2.0? I am developing an iPhone application where I …

objective-c cocoa email email-validation
Objective-C: Extract filename from path string

When I have NSString with /Users/user/Projects/thefile.ext I want to extract thefile with Objective-C methods. What is …

objective-c cocoa
filtering NSArray into a new NSArray in Objective-C

I have an NSArray and I'd like to create a new NSArray with objects from the original array that meet …

objective-c cocoa nsarray
Compiler error: "initializer element is not a compile-time constant"

When compiling this code, I get the error "initializer element is not a compile-time constant". Can anyone explain why? #import "…

objective-c cocoa initialization compiler-errors global-variables
Difference between objectForKey and valueForKey?

What is the difference between objectForKey and valueForKey? I looked both up in the documentation and they seemed the same …

objective-c cocoa key-value-coding
Input from the keyboard in command line application

I am attempting to get the keyboard input for a command line app for the new Apple programming language Swift. …

swift macos cocoa command-line