mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-29 18:02:03 +00:00
reactive support for 10.6 EXPERIMENTAL, this support may be removed very soon
This commit is contained in:
1 parent
9dab10ce19
commit
791a1eb130
2 files changed
+12
-4
No files matched your search
@@ -35,12 +35,20 @@ void fsevents_callback(ConstFSEventStreamRef streamRef,
|
||||
{
|
||||
NSString *path = [(NSArray *)eventPaths objectAtIndex:i];
|
||||
|
||||
if (!(eventFlags[i] & kFSEventStreamEventFlagItemIsFile)
|
||||
// /!\ IMPORTANT /!\
|
||||
//
|
||||
// This is a test. Maybe these values where present as
|
||||
// private API in 10.6, and maybe not
|
||||
// If not, we will drop support for 10.6
|
||||
|
||||
// kFSEventStreamEventFlagItemIsFile = 0x00010000
|
||||
if (!(eventFlags[i] & 0x00010000)
|
||||
|| [xcc isPathMatchingIgnoredPaths:path]
|
||||
|| (![xcc isXIBFile:path] && ![xcc isObjJFile:path] && ![xcc isXCCIgnoreFile:path]))
|
||||
continue;
|
||||
|
||||
if (eventFlags[i] & kFSEventStreamEventFlagItemRemoved)
|
||||
// kFSEventStreamEventFlagItemRemoved = 0x00000200
|
||||
if (eventFlags[i] & 0x00000200)
|
||||
{
|
||||
[xcc handleFileRemoval:path];
|
||||
}
|
||||
|
||||
@@ -332,7 +332,7 @@
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
PREBINDING = NO;
|
||||
SDKROOT = macosx10.7;
|
||||
SDKROOT = macosx10.6;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -346,7 +346,7 @@
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
PREBINDING = NO;
|
||||
SDKROOT = macosx10.7;
|
||||
SDKROOT = macosx10.6;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user