This file contains 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
@class NSManagedObjectContext; | |
@interface NSManagedObjectContext(SXConvenienceFetch) | |
- (NSArray *)fetchObjectsWithEntityName:(NSString *)entityName includingSubentities:(BOOL)flag sortKey:(NSString *)sortKey ascending:(BOOL)ascending error:(NSError **)error; | |
@end |
This file contains 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
char *command1= "/usr/bin/dscl"; | |
char *args1[] = {".","-read","/SharePoints/FolderName","directory_path",nil}; | |
FILE *pipe = nil; | |
err = AuthorizationCreate(nil, | |
kAuthorizationEmptyEnvironment, | |
kAuthorizationFlagDefaults, | |
&authorizationRef); |
This file contains 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
/* | |
* To compile: | |
* $ clang iPod.c -o iPod | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
void print_help(FILE *file) { |
This file contains 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
// -setServers: | |
dictionaryForDuplicateHostnameChecking = [[NSMutableDictionary dictionary] retain]; // release in -dealloc | |
for (RWServer *server in self.servers) { | |
if ([dictionaryForDuplicateHostnameChecking objectForKey:server.hostname]) { | |
NSMutableArray *array = [dictionaryForDuplicateHostnameChecking objectForKey:server.hostname]; | |
[array addObject:server.hostname]; | |
} else { | |
[dictionaryForDuplicateHostnameChecking setObject:[NSMutableArray arrayWithObject:server] forKey:server.hostname]; | |
} | |
} |
This file contains 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
fu |