Tutorial by Topics

When using method swizzling in Swift there are two requirements that your classes/methods must comply with: Your class must extend NSObject The functions you want to swizzle must have the dynamic attribute For a complete explanation of why this is required, check out Using Swift with Cocoa...
The singleton pattern has the goal to allow only one instance of a class to exists at any given time. Preventing the direct instantiation via constructor is usually prevent by making it private. However, this is not possible in As3 and thus other ways to control the number of instances have to be...
This section provides an overview of what cocoa is, and why a developer might want to use it. It should also mention any large subjects within cocoa, and link out to the related topics. Since the Documentation for cocoa is new, you may need to create initial versions of those related topics. ...
ParameterExplanation$templatePasses one parameter to the filter, $template is the current path to the appropriate file for the post type as found in the active child theme or parent theme (if no child theme in place or child theme has lower ranked templates. See wordpress template hierarchy for mor...
git stash list [<options>] git stash show [<stash>] git stash drop [-q|--quiet] [<stash>] git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>] git stash branch <branchname> [<stash>] git stash [save [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet] [-u...
ParameterUsagenameName of your distribution.versionVersion string of your distribution.packagesList of Python packages (that is, directories containing modules) to include. This can be specified manually, but a call to setuptools.find_packages() is typically used instead.py_modulesList of top-level...
Not all HTML tags are of the same structure. While most elements require an opening tag, a closing tag, and contents, some elements - known as void elements - only require an opening tag as they themselves do not contain any elements. This topic explains and demonstrates the proper usage of void ele...
UIWebView Delegate functions:- Objective-C Declerations - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType; - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error; - (void...
split regex target-string &key start end limit with-registers-p omit-unmatched-p sharedp => list lispworks:split-sequence separator-bag sequence &key start end test key coalesce-separators => sequences split-sequence delimiter sequence &key start end from-end count remove-empty...
- or +: The type of method. Instance or class? (): Where the return type goes. Use void if you don't want to return anything! Next is the name of the method. Use camelCase and make the name easy to remember an understand. If your method needs parameters, now is the time! The first...
NSAssert(condition, fmtMessage, arg1, arg2, ...) (args in italics are optional) -- Asserts that condition evaluates to a true value. If it doesn't than the assertion will raise an exception (NSAssertionException), with the fmtMessage formatted with the args provided
BroadcastReceiver (receiver) is an Android component which allows you to register for system or application events. All registered receivers for an event are notified by the Android runtime once this event happens. for example, a broadcast announcing that the screen has turned off, the battery is l...
typedef NS_ENUM(type, name) {...} -- type is the type of enumeration and name is the name of the enum. values are in "...". This creates a basic enum and a type to go with it; programs like Xcode will assume a variable with the enum type has one of the enum values

Page 58 of 428