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
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 mails | Author | Date |
|---|---|---|
| Mr. Gecko | Mar 10, 17:10 | |
| Kyle Sluder | Mar 10, 17:33 | |
| Brady Duga | Mar 10, 18:05 | |
| Brian Stern | Mar 10, 19:29 | |
| John Stiles | Mar 10, 19:54 | |
| Thomas Engelmeier | Mar 10, 20:01 | |
| Jeff LaMarche | Mar 10, 20:03 | |
| Herb Petschauer | Mar 10, 20:13 | |
| Mr. Gecko | Mar 10, 20:14 | |
| glenn andreas | Mar 10, 20:20 | |
| Keith Duncan | Mar 10, 23:18 | |
| Adam P Jenkins | Mar 11, 00:37 |






Cocoa mail archive

