NSBundle
NSBundle
- Subject: NSBundle
- From: email@hidden
- Date: Mon, 7 May 2001 14:41:36 -0700
I have a directory "Plugins" inside my app's "Resources" directory.
I try to locate a specific plugin with:
NSString* path = [NSBundle pathForResource: @"MyPlugin" ofType: nil
inDirectory: @"Plugins"];
I always get back NULL :-(
If I pass @"" or nil instead of @"Plugins" to the directory parameter I
get respectively an assert and a crash. The documentation says "The
argument bundlePath must be a valid bundle directory or nil."
What am I doing wrong?
Arno.