Make 2015 totally awesome. Take the Dummies challenge and you could win $1,000! Learn how.

Macintosh Programming

View:  
Sorted by:  

Working with Interface Windows in Cocoa

Perhaps the most important element of any GUI-based application is the window. In fact, it's so important that those guys from Redmond used it to name their operating system. The windows in an application [more…]

What Is Scripting, Anyway?

Why is this AppleScript stuff called scripting? The answer is unclear, but it was probably a marketing ploy to keep people from thinking about programming. While real people tend to think of programming [more…]

Building Graphics with Cocoa Programming

To do any type of graphics programming in Cocoa, familiarize yourself with a few important Cocoa data structures: NSPoint, NSRect, NSSize, and NSColor. You'll need them so they make a good starting point [more…]

Saving Time and Energy with Cocoa Programming Tips

Programming computers can be tedious and grueling. Save some time and make your Cocoa programming easier with these handy tips and tricks. [more…]

Polishing Your Development Tools for Cocoa Programming

Cocoa is one kind of programming that you can perform with Apple's Developer Tools. Cocoa is a collection of tools and libraries that allows you to get the most out of Mac OS X programming. Many features [more…]

Rules for Naming AppleScript's Variables

Because the Mac lacks common sense, there are rules that define what a variable can be called. Variable names [more…]

Declaring Classes and Sending Messages in Objective-C

Object-oriented programming languages enable you to declare classes, create derived classes (subclass), and send messages to the objects instantiated from a class. This is the essence of object-oriented [more…]

Making an Objective-C Statement

Programming iOS and Mac OS X apps in Objective-C is about making a statement. You can recognize a statement in Objective-C immediately by noting the semicolon at the end: [more…]

Objective-C Built-in Data Types and New Data Types

The variables you declare in Objective-C — Objective-C data types — must be a type that the compiler can recognize. Objective-C comes with a number of built-in data types, as well as mechanisms to create [more…]

Objective-C Operators

Objective-C operators, like those in other programming languages, let you perform operations on variables (hence the name). Objective-C provides many operators, and keeping track of all of them can be [more…]

Control Statements and Loops in Objective-C

In programming, as in life, you have to make decisions and act on them. Objective-C provides control statements and loops to help your program take action. You may want to repeat a set of instructions [more…]

Working with both Swift and Objective-C

As of the start of 2015, almost all of the Cocoa and Cocoa Touch frameworks are written in Objective-C, and Swift can use them easily. (Of course it can; this was one of Swift’s design goals.) Even so, [more…]

The Anatomy of a Swift Class

Classes are the heart of any object-oriented programming language. Unlike classes in Objective-C and some other languages, Swift’s classes need no header declaration. Instead, you get the entire class [more…]

How to Update Xcode for a New Swift Release

New releases of Xcode (downloadable from developer.apple.com for the beta and pre-release versions and from the Mac App Store for released versions) include documentation and APIs for new versions of Swift [more…]

10 Tips for Switching between Objective-C and Swift

This is a list of tips, typos, and gotchas from switching between Objective-C and Swift. It doesn't take long to make the transition, but it’s easy to get stuck on this: [more…]

Choosing How to Implement Functionality in Swift

When you're thinking about creating an app, how do you decide how to implement its functionality? Swift, along with the Cocoa and Cocoa Touch frameworks, provides a wide variety of tools to assist you. [more…]

A Quick Guide to Initializing Stored Properties in a Swift Class or Structure

Constants and variables have to be initialized before use in Swift. However, there’s more than one way to do this and get on with your code. If you’re not sure whether your approach will work, test out [more…]

Building Swift Outlets and Actions with Xcode

Xcode has Interface Builder built into it so that you can design your interface graphically. The key to making it all work is to connect the graphical elements from Interface Builder to your Swift files [more…]

Swift For Dummies Cheat Sheet

Swift is Apple’s new programming language aimed for developers to use with iOS and OS X devices. Swift has been designed both to work alongside its predecessor, Objective-C, and to one day be Objective-C’s [more…]

Swift Standard Library Types

As with other languages, Swift provides developers a common library of utility code that’s frequently used in development. A library like this is separate from the language itself, although it uses the [more…]

10 Objective-C Features That Aren’t in Swift

If you are an experienced Objective-C developer, this list reminds you of some features you may be used to that aren’t available in Swift. In each case, workarounds and strategies for replacing your old [more…]

10 Swift Features That Are Not in C

Considering that Swift is a newly developed, object‐oriented language, and that C was developed almost half a century ago (by Dennis Ritchie in 1969–1973), when the object‐oriented paradigm wasn’t even [more…]

10 Swift Features That Aren’t in Objective-C

Objective‐C dates back to the 1980s — quite a long time ago by computer technology standards. In the decades since its first release, Objective‐C’s influence on programming language technologies and best [more…]

Comparing Frameworks in Objective-C and Swift

The Master-Detail Application template uses a split-view controller in some cases and a navigation controller in others. Originally (that is, with the launch of iPad), the split-view controller was intended [more…]

Bridging between Objective-C and Swift

There are cases where you need to mix and match code between the Objective-C and Swift languages. When it comes to the frameworks, the engineers at Apple are working through the interfaces to provide Swift [more…]

Listings:1-2526-5051-54
Advertisement

Sign Up for RSS Feeds

Computers & Software

Inside Dummies.com