Re: Building a C library Objective-C wrapper framework
Re: Building a C library Objective-C wrapper framework
- Subject: Re: Building a C library Objective-C wrapper framework
- From: Sebastian Nowicki <email@hidden>
- Date: Tue, 15 Jul 2008 15:48:48 +0800
On 15/07/2008, at 3:11 PM, Sebastian Nowicki wrote:
Oh, a problem I'll probably run into is that the c library defines
some enums, which are exposed in the public header files. How would
I abstract that? A typedef doesn't work, so I guess I'd have to
define my own enum and just set the values to those of the other
enum? Quite an ugly solution, imo.
I guess that didn't work. I forgot that categories only add to a
class, so I can't use the stuff from the category in the original
class. I also can't think of a way to use the typedef'd C structs and
enums from the library in the header file without including the
library header file. This is tricky indeed. If only I could see how
Apple did it with OpenGL, etc :P.Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden