 |
 |
calling cocoa from carbon
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: Texas
Status:
Offline
|
|
Does anyone know an easy way to do this... I have a semi working prototype using the CocoaInCarbon example on Apple's website. It keeps dying on:
bundleRef = CFBundleCreate(NULL, bundleURL);
where bundleRef is a CFBundleRef. It returns NULL. The bundleURL is not NULL, so it *should* work. Is there an easier way then using Apple's code as a base?
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Well, CFBundleCreate will return NULL for a reason - probably that you didn't actually pass in a valid URL to a bundle.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: Texas
Status:
Offline
|
|
the CFURL that I am passing does not return NULL. Is there a way to check other than is bundleURL == NULL?
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Are you sure the CFURL refers to a valid bundle?
|
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: Texas
Status:
Offline
|
|
Originally posted by Chuckit:
Are you sure the CFURL refers to a valid bundle?
Let's see how vague of an answer I can give....
I Do Not Know
How can I check other then seeing if it is NULL?
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally posted by djohnson:
How can I check other then seeing if it is NULL?
No, not the CFURLRef, but the actual URL path on disk that you are trying to use. This path must be a directory for you to create a CFBundle from it.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: Texas
Status:
Offline
|
|
What format does the URL path need? Apple's documentation does not elaborate enough for me to completely understand it. Thanks!
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2000
Location: Texas
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally posted by djohnson:
What format does the URL path need? Apple's documentation does not elaborate enough for me to completely understand it. Thanks!
What do you mean, "format"? The URL must be a filesystem path that points to a bundle. If you don't know what that means, go look at the Mac OS X Bundles conceptual overview.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|