Cocoa and Objective-C: Up and Running by Scott Stevenson
Author:Scott Stevenson
Language: eng
Format: mobi, epub, pdf
Tags: COMPUTERS / Programming / Apple Programming
Publisher: O'Reilly Media
Published: 2010-04-15T16:00:00+00:00
Figure 8-5. A control sending an action message to a target
Setting an action for a button is, literally, telling it which method to call when it’s clicked. It’s the Cocoa equivalent of “Call me at this number when you hear anything.” When that method is called, you can react by running other code in your app to actually perform the task the user is requesting.
Buttons
Buttons are a convenient starting place for learning about actions, because the flow is very easy to understand. The user clicks on the button and the action is sent to another object, called the target. There are more complex buttons with toggle states and other variations, but the most common version is the standard push button.
Almost all push buttons are instances of the NSButton class,[7] which inherits from NSControl. Although there are many built-in visual styles for buttons in AppKit, most of them are not subclasses. Instead, the visual styles are defined through properties on the base NSButton class. All of the items in Figure 8-6 are stock NSButton instances with different styles applied.
Download
Cocoa and Objective-C: Up and Running by Scott Stevenson.epub
Cocoa and Objective-C: Up and Running by Scott Stevenson.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Coding Theory | Localization |
Logic | Object-Oriented Design |
Performance Optimization | Quality Control |
Reengineering | Robohelp |
Software Development | Software Reuse |
Structured Design | Testing |
Tools | UML |
Deep Learning with Python by François Chollet(12563)
Hello! Python by Anthony Briggs(9911)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9794)
The Mikado Method by Ola Ellnestam Daniel Brolund(9775)
Dependency Injection in .NET by Mark Seemann(9335)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8292)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7758)
Grails in Action by Glen Smith Peter Ledbrook(7693)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7017)
Microservices with Go by Alexander Shuiskov(6784)
Practical Design Patterns for Java Developers by Miroslav Wengner(6698)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6637)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6409)
Angular Projects - Third Edition by Aristeidis Bampakos(6047)
The Art of Crafting User Stories by The Art of Crafting User Stories(5575)
NetSuite for Consultants - Second Edition by Peter Ries(5508)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5310)
Kotlin in Action by Dmitry Jemerov(5061)
