Re: newbie & calling functions from other classes
Re: newbie & calling functions from other classes
- Subject: Re: newbie & calling functions from other classes
- From: James McConnell <email@hidden>
- Date: Fri, 04 Mar 2005 18:55:48 -0600
On 3/4/05 4:19 PM, "Aaron Wallis" <email@hidden> wrote:
> Hi there,
>
> im building my first app in Cocoa [obj-c] and im having difficulty
> processing functions/methods/selectors from other classes...
>
> For example, I have a myDocument.h/.m within it I need to call a
> function called setupToolbar from my rylToolbar.h/.m.
>
All you should need to do is import rylToolbar.h in myDocument.m. At the
top of myDocument.m, you should have a line like:
#import "MyDocument.h"
Simply add below that:
#import "rylToolbar.h"
That way, myDocument.m will be aware of your rylToolbar header file and you
can call functions from rylToolbar.h in myDocument.m
Hope that helps!
James
_______________________________________________
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