• 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: What's the best practice to write some common tasks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the best practice to write some common tasks?


  • Subject: Re: What's the best practice to write some common tasks?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 15 Nov 2011 19:33:55 -0800

On Nov 15, 2011, at 7:17 PM, ico wrote:

> So what is the best practice to place these function? Simply write them as
> a C function or implement them in a common class and make them static?

Either way is OK, and you can find several examples of either technique in Apple’s APIs — look at NSFileManager and at NSGraphics.h.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >What's the best practice to write some common tasks? (From: ico <email@hidden>)

  • Prev by Date: What's the best practice to write some common tasks?
  • Next by Date: Re: NSDateFormatter not working on iOS 5.
  • Previous by thread: What's the best practice to write some common tasks?
  • Next by thread: Adding sound to movie with QTKit
  • Index(es):
    • Date
    • Thread