| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi List, Following method returns false, if i pass correct absolute bundle path. Is there is anything wrong in this method: - (BOOL) isBundle:(NSString *)inPath { FSCatalogInfo info; FSRef fileRef; OSErr err = noErr; Boolean isDirectory; const char *path = [inPath cString]; err = FSPathMakeRef ((UInt8 *) path, &fileRef, &isDirectory); if( err != noErr) return NO; err = FSGetCatalogInfo( &fileRef, kFSCatInfoFinderInfo, &info, NULL,NULL, NULL ); if( err != noErr ) return NO; FileInfo* fInfo = (FileInfo*) info.finderInfo; BOOL result = fInfo->finderFlags & kHasBundle; NSLog(@"fInfo->finderFlags %x", fInfo->finderFlags); NSLog(@"kHasBundle %x", kHasBundle); NSLog(@"Path: %@ \n result %d", inPath, result); return result; } Thanks, - Apparao
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.