Re: NSView -subviews ordering?
Re: NSView -subviews ordering?
- Subject: Re: NSView -subviews ordering?
- From: Ondra Cada <email@hidden>
- Date: Wed, 29 May 2002 22:59:29 +0200
On Wednesday, May 29, 2002, at 09:53 , Brock Brandenberg wrote:
so you need to put it outside of your @implementation/@end or in an
external file.
You don't need to do that. Why, on earth?!?
I use the same sort function with a couple of NSView subclasses, so I
simply put it in a file that gets included by both rather than duplicate
code.
Of course you *can* do that, no argument (well, presumably you put it in a
file which gets *linked with* both of them, otherwise -- if include is
really what you used to share the code -- you *do* duplicate).
Though, I understood your "...you need to put it outside..." as "you can't
have functions inside", which is not true:
void fnc(void) { ... }
...
@implementation Blah
...
void fnc2(void) { ... }
...
@end
Both cases are perfectly all right.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.