Slide 24
Slide 24 text
Example code seems working
LSSharedFileList
LSSharedFileListRef fileList = LSSharedFileListCreate(NULL,
kLSSharedFileListSessionLoginItems, NULL);
LSSharedFileListAddObserver(fileList, ..., callback, ...);
void callback(LSSharedFileListRef fileList, void *context) {
NSArray *snapshot = (__bridge NSArray *)
LSSharedFileListCopySnapshot(fileList, ...);
for (item in snapshot) {
CFURLRef url;
LSSharedFileListItemResolve(item, ..., &url);
if ([(__bridge NSURL *)url isEqualTo:applicationBundlerURL]) {
// changed!
}
}
}