loading bundles?
-
I have a cocoa bundle, that i've created by following apple's
documentation, the bundle builds fine ect. but [bundle load] returns
nil. It's got me stumped, I've had the problem for a while, since there
is only one plugin at the moment, and it was in early development, I
just included the class in the app and hard coded the principal class
in, but it's nearly finished now, I need plugins working.
Any ideas??
-jail -
[bundle load] returns NO that is :/
On 11/11/2003, at 3:37 PM, Jail wrote:> I have a cocoa bundle, that i've created by following apple's
> documentation, the bundle builds fine ect. but [bundle load] returns
> nil. It's got me stumped, I've had the problem for a while, since
> there is only one plugin at the moment, and it was in early
> development, I just included the class in the app and hard coded the
> principal class in, but it's nearly finished now, I need plugins
> working.
> Any ideas??
> -jail
>
> _______________________________________________
> MacOSX-dev mailing list
> <MacOSX-dev...>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
> -
As i said, i followed apple's documentation, and when it didn't work, I
tried:
NSBundle *bundle = [NSBundle
bundleWithPath:@"/Users/jail/JBFileBrowser/build/
JBFileBrowser.bundle"];
if ( [bundle load] ) {
[dataSourcePluginsM addObject:[bundle principalClass]];
}
But, I just tried it on a second mac and it works fine... :-/
I must have done something different this time.
thanks anyway
-jail
On 12 Nov 2003, at 6:14 AM, Mike R. Manzano wrote:>> [bundle load] returns NO that is :/
>
> How are you getting "bundle"?
>
>
> Mike R. Manzano
> alephx01 (at) mac (dot) com
>
>
>


