FROM : Clark S. Cox III
DATE : Tue Nov 20 06:37:24 2007
In a word: yes.
CFBundle works in single-file executables as well as bundled
executables.
Clark Cox III
Clark.<email_removed>
Sent from my iPhone
On Nov 19, 2007, at 21:31, Scott Stevenson <<email_removed>> wrote:
>
> On Nov 19, 2007, at 6:09 PM, Clark Cox wrote:
>
>> Why bother with CFBundle's source? Just *use* CFBundle. (composed in
>> e-mail, but should give a basic idea):
>>
>> #include <CoreFoundation/CFBundle.h>
>> #include <stdlib.h>
>> #include <stdio.h>
>>
>> char *GetExecutableLocation() {
>> CFBundleRef bundle = CFBundleGetMainBundle();
>
> I got the impression from the description that this is a program
> which does not necessarily have a bundle. Does CFBundle actually
> work some magic in that situation?
>
> - Scott
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
DATE : Tue Nov 20 06:37:24 2007
In a word: yes.
CFBundle works in single-file executables as well as bundled
executables.
Clark Cox III
Clark.<email_removed>
Sent from my iPhone
On Nov 19, 2007, at 21:31, Scott Stevenson <<email_removed>> wrote:
>
> On Nov 19, 2007, at 6:09 PM, Clark Cox wrote:
>
>> Why bother with CFBundle's source? Just *use* CFBundle. (composed in
>> e-mail, but should give a basic idea):
>>
>> #include <CoreFoundation/CFBundle.h>
>> #include <stdlib.h>
>> #include <stdio.h>
>>
>> char *GetExecutableLocation() {
>> CFBundleRef bundle = CFBundleGetMainBundle();
>
> I got the impression from the description that this is a program
> which does not necessarily have a bundle. Does CFBundle actually
> work some magic in that situation?
>
> - Scott
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev






Cocoa mail archive

