Skip to content

Instantly share code, notes, and snippets.

View ChristianKienle's full-sized avatar
🐶
Coconut Shock

Christian Kienle ChristianKienle

🐶
Coconut Shock
  • Apple
  • Cupertino
View GitHub Profile
/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright 2011 Matt Kane. All rights reserved.
* Copyright (c) 2011, IBM Corporation
*/
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NSURL *a = [NSURL fileURLWithPath:@"/Users/cmk"];
NSURL *b = [NSURL fileURLWithPath:@"/Users/cmk/"];
NSLog(@"equal: %i", [a isEqual:b]); // => output: equal: 1
@ChristianKienle
ChristianKienle / gist:2688285
Created May 13, 2012 12:43
Core Data Editor 4.3 Changes
This release introduces a ton of new features and fixes several minor issues. Here is a list of the most important changes:
- You can now import CSV data into an entity using Core Data Editor directly
- Advanced filter view
- Updated to the latest version of mogenerator
- Added the option to generate ARC compatible code
@property (nonatomic, strong) NSString *name;
// @synthesize name = _name; erzeugt in etwa folgenden Code:
- (void)setName:(NSString *)name {
// zuerst retain, dann release, dann Zuweisung
[name retain];
[_name release];
_name = name;
}
- (void)viewDidLoad
{
[super viewDidLoad];
[[NSNotificationCenter defaultCenter] addObserverForName:SISPersistentStoreNotifications.didImportUbiquitousContentChanges object:nil queue:nil usingBlock:^(NSNotification *note) {
CMKUbiquitousChange *change = [note.userInfo objectForKey:@"ubiquitousChange"];
NSArray *insertedObjectIDs = change.insertedObjectIDs;
#import <Foundation/Foundation.h>
@interface NSDictionary (CMKJSONSerializationAdditions)
#pragma mark - Creating JSON Data
// same semantics as +dataWithJSONObject:options:error: (NSJSONSerialization)
- (NSData *)JSONDataWithOptions:(NSJSONWritingOptions)options
error_cmk:(NSError **)error;
// same semantics as +writeJSONObject:toStream:options:error: (NSJSONSerialization)
/*
File: Fetcher.m
Abstract:
Version: 1.0
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
select * from main.y_primary_key_to_uuid as main_mapping, ipad.y_primary_key_to_uuid as ipad_mapping join main.y_primary_key_to_uuid on (ipad_mapping_y_uuid != main_mapping.y_uuid);
One of the few public Objective-Cloud.com tests:
curl -d "{ \"message\" : { \"selector\" : \"dictionary:withRemovedKey:\", \"arguments\" : [{ \"firstName\" : \"Chris\", \"lastName\" : \"Kienle\" }, \"lastName\"] } }" messages.objective-cloud.com:8080/teams/9811/apps/de.cocoading.CloudApp/services/YourService