On Jan 25, 2007, at 4:21 PM, Aliacta wrote:
So far I haven't managed to make a single declare work, they all
end in a hard crash.
It seems impossible to pass arrays to a declare. Will it accept a
CFStringRef instead of a CFArrayRef? Will that cause a bug or will
that allow to pass one value instead of a list.
It will most likely crash. I'd recommend checking out either <http://
www.declaresub.com/> or Thomas Reed's CoreFoundation classes (<http://
www.bitjuggler.com/extra/>). Then you can use his already-written
classes to interact with CoreFoundation.
How can I pass a constant? I'd like to pass the constant NULL or
kCFAllocatorDefault to a CFAllocatorRef parameter. How do I do
this? Which data type do I use for CFAllocatorRef? Just integer?
Yes, just declare it as an Integer and pass 0.
HTH,
Jon
--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
REAL World 2007 Conference
May 9 - 11 in Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>