mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 02:40:59 +00:00
XcodeCapp improvements
- Convert to ARC, garbage collection is deprecated. - Support radio buttons and groups as outlets in IB.
This commit is contained in:
1 parent
ce0aadfcf7
commit
67624208de
8 files changed
+377
-369
No files matched your search
@@ -280,7 +280,7 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
|
||||
[self stopEventStream];
|
||||
|
||||
NSMutableArray *pathsToWatch = [NSMutableArray arrayWithObject:aPath];
|
||||
void *appPointer = (void *)self;
|
||||
void *appPointer = (__bridge void *)self;
|
||||
FSEventStreamContext context = {0, appPointer, NULL, NULL, NULL};
|
||||
CFTimeInterval latency = 2.0;
|
||||
FSEventStreamCreateFlags flags = 0;
|
||||
@@ -314,7 +314,7 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
|
||||
}
|
||||
}
|
||||
|
||||
stream = FSEventStreamCreate(NULL, &fsevents_callback, &context, (CFArrayRef) pathsToWatch,
|
||||
stream = FSEventStreamCreate(NULL, &fsevents_callback, &context, (__bridge CFArrayRef) pathsToWatch,
|
||||
[lastEventId unsignedLongLongValue], latency, flags);
|
||||
|
||||
FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
@@ -741,7 +741,7 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
|
||||
|
||||
for (NSString *subpath in subpaths)
|
||||
{
|
||||
if ([subpath pathExtension] != @".h" || [subpath lastPathComponent] == @"xcc_general_include.h")
|
||||
if (![[subpath pathExtension] isEqual:@".h"] || [[subpath lastPathComponent] isEqual:@"xcc_general_include.h"])
|
||||
continue;
|
||||
|
||||
NSURL *unshadowed = [self sourceURLForShadowName:subpath];
|
||||
@@ -856,7 +856,7 @@ NSString * const XCCListeningStartNotification = @"XCCListeningStartNotification
|
||||
}
|
||||
|
||||
if (date)
|
||||
[pathModificationDates setObject:[date retain] forKey:path];
|
||||
[pathModificationDates setObject:date forKey:path];
|
||||
else
|
||||
[pathModificationDates removeObjectForKey:path];
|
||||
|
||||
|
||||
Reference in new issue
Block a user