How to write a "function" in Cocoa?
How to write a "function" in Cocoa?
- Subject: How to write a "function" in Cocoa?
- From: Joel Norvell <email@hidden>
- Date: Fri, 3 Nov 2006 23:31:19 -0800 (PST)
Dear Cocoa-dev People,
I've had to implement identical functions in unrelated classes to manipulate
NSRects. These functions also use Cocoa objects. Doing a Category doesn't
seem feasible here since NSRect is not a class. How can I factor these
functions into a file like MyRectUtilities.h? Is there example code that does
this? (I've looked around but haven't found anything.)
Thanks,
Joel
P.S. I'm calling them "functions" since they don't use/need "self".
____________________________________________________________________________________
Everyone is raving about the all-new Yahoo! Mail
(http://advision.webevents.yahoo.com/mailbeta/)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden