• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Wrapping" of Carbon code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: "Wrapping" of Carbon code (From: Charles Srstka <email@hidden>)

  • Prev by Date: saving NSSplitView sub-frame positions
  • Next by Date: Re: saving NSSplitView sub-frame positions
  • Previous by thread: Re: "Wrapping" of Carbon code
  • Next by thread: Re: Localizable.strings weirdness
  • Index(es):
    • Date
    • Thread