Skip navigation.
 
mlRe: fileExistsAtPath with * to indicate random
FROM : Keith Duncan
DATE : Mon Mar 10 23:18:21 2008

> I tried BOOL ImageMagick = [[NSFileManager defaultManager] 
> fileExistsAtPath:@"/ImageMagick*/" isDirectory:YES];


You're calling that wrong, the second parameter expects a pointer to a 
BOOL, not an actual BOOL. The correct syntax is:

BOOL directory;
BOOL exists = [[NSFileManager defaultManager] fileExistsAtPath:@"/
ImageMagick/" isDirectory:&directory];

But anyway, you're probably best getting the directory contents of 
where ImageMagick should be installed and running through it. I'm not 
familiar with ImageMagick; I don't even know what it is! But you 
should bear in mind that if it's relocatable you'll want to check all 
the possible locations.

Take a look at NSSearchPathForDirectoriesInDomains() in the docs.

Keith

Related mailsAuthorDate
mlfileExistsAtPath with * to indicate random Mr. Gecko Mar 10, 17:10
mlRe: fileExistsAtPath with * to indicate random Kyle Sluder Mar 10, 17:33
mlRe: fileExistsAtPath with * to indicate random Brady Duga Mar 10, 18:05
mlRe: fileExistsAtPath with * to indicate random Brian Stern Mar 10, 19:29
mlRe: fileExistsAtPath with * to indicate random John Stiles Mar 10, 19:54
mlRe: fileExistsAtPath with * to indicate random Thomas Engelmeier Mar 10, 20:01
mlRe: fileExistsAtPath with * to indicate random Jeff LaMarche Mar 10, 20:03
mlRe: fileExistsAtPath with * to indicate random Herb Petschauer Mar 10, 20:13
mlRe: fileExistsAtPath with * to indicate random Mr. Gecko Mar 10, 20:14
mlRe: fileExistsAtPath with * to indicate random glenn andreas Mar 10, 20:20
mlRe: fileExistsAtPath with * to indicate random Keith Duncan Mar 10, 23:18
mlRe: fileExistsAtPath with * to indicate random Adam P Jenkins Mar 11, 00:37