An Objective-C wrapper for Mac OS X’s FSEvents C API.
リビジョン | 1ce48c1b0fee386be470099cbb704391e468ae12 (tree) |
---|---|
日時 | 2010-04-10 10:29:21 |
作者 | Aron Cedercrantz <aron@cede...> |
コミッター | Aron Cedercrantz |
Added didVolumeMount property to CDEvent class.
@@ -289,6 +289,37 @@ typedef FSEventStreamEventFlags CDEventFlags; | ||
289 | 289 | */ |
290 | 290 | @property (readonly) BOOL isRootChanged; |
291 | 291 | |
292 | +/** | |
293 | + * Denotes a special event sent when a volume is mounted underneath one of the URLs being watched. | |
294 | + * | |
295 | + * Denotes a special event sent when a volume is mounted underneath one of the | |
296 | + * URLs being watched. The URL in the event is the URL to the newly-mounted | |
297 | + * volume. You will receive one of these notifications for every volume mount | |
298 | + * event inside the kernel (independent of DiskArbitration). Beware that a | |
299 | + * newly-mounted volume could contain an arbitrarily large directory hierarchy. | |
300 | + * Avoid pitfalls like triggering a recursive scan of a non-local filesystem, | |
301 | + * which you can detect by checking for the absence of the | |
302 | + * <code>MNT_LOCAL</code> flag in the <code>f_flags</code> returned by statfs(). | |
303 | + * Also be aware of the <code>MNT_DONTBROWSE</code> flag that is set for volumes | |
304 | + * which should not be displayed by user interface elements. | |
305 | + * | |
306 | + * @return <code>YES</code> if a volumen is mounted underneath one of the URLs being watched, otherwise <code>NO</code> | |
307 | + * | |
308 | + * @see kFSEventStreamEventFlagMount | |
309 | + * @see flags | |
310 | + * @see isGenericChange | |
311 | + * @see mustRescanSubDirectories | |
312 | + * @see isUserDropped | |
313 | + * @see isKernelDropped | |
314 | + * @see isEventIdsWrapped | |
315 | + * @see isHistoryDone | |
316 | + * @see isRootChanged | |
317 | + * @see didVolumeUnmount | |
318 | + * | |
319 | + * @since head | |
320 | + */ | |
321 | +@property (readonly) BOOL didVolumeMount; | |
322 | + | |
292 | 323 | #pragma mark Class object creators |
293 | 324 | |
294 | 325 | /** |