• 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: Building a C library Objective-C wrapper framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Building a C library Objective-C wrapper framework
      • From: Uli Kusterer <email@hidden>
References: 
 >Building a C library Objective-C wrapper framework (From: Sebastian Nowicki <email@hidden>)
 >Re: Building a C library Objective-C wrapper framework (From: Jens Alfke <email@hidden>)
 >Re: Building a C library Objective-C wrapper framework (From: Sebastian Nowicki <email@hidden>)

  • Prev by Date: Re: Resolving conflicting typedefs uint32
  • Next by Date: Re: Xcode project has lost track of file modification
  • Previous by thread: Re: Building a C library Objective-C wrapper framework
  • Next by thread: Re: Building a C library Objective-C wrapper framework
  • Index(es):
    • Date
    • Thread