Ask a Question related to Mac Programming, Design and Development.
-
Harpstein #1
Using FSFindFolder
hey all,
I've got a framework bundle that I want to load from a shared library.
I've got it working using FSFindFolder( kOnAppropriateDisk,
kFrameworksFolderType, false, ...);
But, I'd like to be able to tell it to load the framework from the same
directory as the shared library.
I checked the Carbon docs and the FrameworksFolderType enum I'm using isn't
in there so I'm hoping there might also be an undocumented type to tell it
to look in the current directory.
I've tried a couple guesses but they don't compile, so I'm hoping someone on
here can point me in the right direction.
Thanks for any help you can give,
harpstein
Harpstein Guest
-
Frederick Cheung #2
Re: Using FSFindFolder
On Mon, 25 Aug 2003, Harpstein wrote:
You just want to load a bundle?> hey all,
>
>
> I've got a framework bundle that I want to load from a shared library.
CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID);
CFBundleRef CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL);
are probably your friends.
Fred>
> I've got it working using FSFindFolder( kOnAppropriateDisk,
> kFrameworksFolderType, false, ...);
>
> But, I'd like to be able to tell it to load the framework from the same
> directory as the shared library.
>
> I checked the Carbon docs and the FrameworksFolderType enum I'm using isn't
> in there so I'm hoping there might also be an undocumented type to tell it
> to look in the current directory.
>
> I've tried a couple guesses but they don't compile, so I'm hoping someone on
> here can point me in the right direction.
>
>
> Thanks for any help you can give,
>
> harpstein
>
>
>Frederick Cheung Guest
-
Frederick Cheung #3
Re: Using FSFindFolder
On Tue, 26 Aug 2003, Harpstein wrote:
I think you are out of luck, i've never heard of such a thing.> Thanks, but that's not really what I was asking.
>
> I was asking about FSFindFolder flags...
>
Fred> -harpstein
>
> "Frederick Cheung" <fglc2@srcf.DUH.ucam.org> wrote in message
> news:Pine.LNX.4.44.0308251954360.15378-100000@kern.srcf.societies.cam.ac.uk...> isn't> > On Mon, 25 Aug 2003, Harpstein wrote:
> >> > You just want to load a bundle?> > > hey all,
> > >
> > >
> > > I've got a framework bundle that I want to load from a shared library.
> > CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID);
> > CFBundleRef CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL);
> >
> > are probably your friends.
> >
> > Fred> > >
> > > I've got it working using FSFindFolder( kOnAppropriateDisk,
> > > kFrameworksFolderType, false, ...);
> > >
> > > But, I'd like to be able to tell it to load the framework from the same
> > > directory as the shared library.
> > >
> > > I checked the Carbon docs and the FrameworksFolderType enum I'm using> it> > > in there so I'm hoping there might also be an undocumented type to tell> someone on> > > to look in the current directory.
> > >
> > > I've tried a couple guesses but they don't compile, so I'm hoping>> >> > > here can point me in the right direction.
> > >
> > >
> > > Thanks for any help you can give,
> > >
> > > harpstein
> > >
> > >
> > >
>
>
Frederick Cheung Guest



Reply With Quote

