What's the best practice to write some common tasks?
What's the best practice to write some common tasks?
- Subject: What's the best practice to write some common tasks?
- From: ico <email@hidden>
- Date: Wed, 16 Nov 2011 11:17:04 +0800
Hi all,
Suppose I have some common tasks, such as get user preferences and return
some value, or do some calculation then return the result.
I want to implement a function that do these kind of tasks so that I don't
need to write those codes again and again. However, this function seems
that it should not belong to any class, it is just a common task that many
classes will use them.
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?
Thanks.
--
==========================
Life isn't about finding yourself.
Life is about creating yourself.
_______________________________________________
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