• 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: Project design question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Project design question


  • Subject: Re: Project design question
  • From: Markus Hitter <email@hidden>
  • Date: Thu, 12 Jan 2006 20:58:12 +0100


Am 12.01.2006 um 19:41 schrieb Craig Dooley:

Is the
"standard" to take a C library, encapsulate it into a model class,
then connect that to your application?

While there are a lot of "wrappers" out there, there's no principal need to wrap a C library just to use it from within Obj-C.


Some cases usually demand something like a wrapper by design. For example a class JpegPicture, if you want to use what libjpeg gives.

In many cases however, adding a wrapper is just asking for more complex code. No need to add a wrapper around stuff like sin(), printf () and similar.

So standard is, or should be, to create classes as your app's design demands it and to use C functions/libraries as needed.


Markus


P.S.: Using C functions directly doesn't prevent you from wrapping a library into a framework.


- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ 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
References: 
 >Project design question (From: Tracy Brown <email@hidden>)
 >Re: Project design question (From: Shawn Erickson <email@hidden>)
 >Fwd: Project design question (From: Craig Dooley <email@hidden>)

  • Prev by Date: Re: deprecated FOUR_CHAR_CODE and macintel
  • Next by Date: MacIntel apps behaves weirdly when compiled with -02 not -01
  • Previous by thread: Fwd: Project design question
  • Next by thread: MacBook Pro
  • Index(es):
    • Date
    • Thread