Re: Objective-C & Private functions
Re: Objective-C & Private functions
- Subject: Re: Objective-C & Private functions
- From: email@hidden
- Date: Sun, 8 Feb 2004 15:02:33 -0500 (EST)
@interface SomeClass : NSObject (Private)
-(void)coolFunction1;
-(void)coolFunction2;
@end
Forgive any syntax misses here since I'm at work and cannot verify what
I'm typing. But it should give you the idea.
>
Hello -
>
Is there any way to create private "Helper" functions in
>
objective-C? I have not been able to find any information on function
>
scoping within a .h file. Obviously, a function can be declared &
>
implemented in the .m file, making it somewhat private. However, the
>
functions pretty much need to be implemented at the top of the .m file
>
so that other functions can see them. Is there a way to declare
>
private functions in the .h file, or at the very least, forward declare
>
them at the top of a .m file, and provide implementation further down
>
in the .m. Thanks for any help in advance.
>
>
--Pete
>
>
---------------------------------------------------
>
Peter S. Fischer
>
http://macosx.syr.edu/spottedsoftware
>
_______________________________________________
>
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.
_______________________________________________
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.