Re: "Wrapping" of Carbon code
Re: "Wrapping" of Carbon code
- Subject: Re: "Wrapping" of Carbon code
- From: Normand Perron <email@hidden>
- Date: Sat, 27 Apr 2002 17:26:29 -0400
OK then... a subsidiary question, if I may...
Is there an example of converting some code contained in the
CoreFoundation so that it can be used in an ObjC class. For example,
some of the functionality I would like to have (and I could create a
subclass of NSObject to do it, I guess) is that of CFTree. It does not
exist in Carbon...
The CFTree.h header contains the following:
typedef CFStringRef (*CFTreeCopyDescriptionCallBack)(const void *info);
I know that the intent is to define the procedure which will describe
the structure of the tree, so that it can be archived, printed, or
transmitted... An example of how Carbon features like this are
implemented into custom classes would be nice and would save me hours of
trial and errors and about a zillion messages if somebody were to
attempt to explain all the intricacies piecemeal through e-mail...
So, are there examples that you know about of incorporating Carbon code
into custom Cocoa classes or frameworks or applications???
Thanks in advance,
Normand
Le Samedi 27 avril 2002, ` 01:28 , Charles Srstka a icrit :
If it's in CoreFoundation, you don't need to do anything at all, since
CoreFoundation is automatically included by Cocoa. Just call the
functions and it will work fine.
On Saturday, April 27, 2002, at 11:46 AM, Normand Perron wrote:
Hello, y'all, eh!
I would like to use some code from the Carbon CoreFoundation framework
in a Cocoa application. I have read here that it can be done
relatively easily by "wrapping" the code and creating a Cocoa
framework. I am unclear as to what is involved...
Would anybody know of simple examples of Carbon code that has been
wrapped for Cocoa/ObjC use?
Normand
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.