Re: How to write a "function" in Cocoa?
Re: How to write a "function" in Cocoa?
- Subject: Re: How to write a "function" in Cocoa?
- From: Scott Stevenson <email@hidden>
- Date: Fri, 3 Nov 2006 23:40:02 -0800
On Nov 3, 2006, at 11:31 PM, Joel Norvell wrote:
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?
Have you run into a specific problem or are you just asking about style?
In terms of style, just putting the two functions in the same file
(as you describe) is fine.
- Scott
_______________________________________________
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