This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@protocol MyProtocol <NSObject> | |
@end | |
int main(int argc, char *argv[]) | |
{ | |
@autoreleasepool | |
{ | |
id <MyProtocol> foo = nil; | |
__unused id value = [foo valueForKey:@"bar"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSError *error = nil; | |
void (^block)(NSError **error); | |
block = ^(NSError **blockError) | |
{ | |
NSArray *array = [NSArray arrayWithObject:@"hello"]; | |
[array enumerateObjectsUsingBlock:^(id object, NSUInteger index, BOOL *stop) { | |
if ( blockError != NULL ) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PRAGMA foreign_keys=OFF; | |
BEGIN TRANSACTION; | |
CREATE TABLE cfurl_cache_schema_version(schema_version INTEGER); | |
CREATE TABLE cfurl_cache_response(entry_ID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, version INTEGER, hash_value INTEGER, storage_policy INTEGER, request_key TEXT UNIQUE, time_stamp NOT NULL DEFAULT CURRENT_TIMESTAMP); | |
CREATE TABLE cfurl_cache_blob_data(entry_ID INTEGER PRIMARY KEY, response_object BLOB, request_object BLOB, proto_props BLOB, user_info BLOB); | |
CREATE TABLE cfurl_cache_receiver_data(entry_ID INTEGER PRIMARY KEY, receiver_data BLOB); | |
DELETE FROM sqlite_sequence; | |
CREATE INDEX request_key_index ON cfurl_cache_response(request_key); | |
CREATE INDEX time_stamp_index ON cfurl_cache_response(time_stamp); | |
CREATE INDEX proto_props_index ON cfurl_cache_blob_data(entry_ID); |