• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie & calling functions from other classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: newbie & calling functions from other classes
      • From: OS <email@hidden>
References: 
 >newbie & calling functions from other classes (From: Aaron Wallis <email@hidden>)

  • Prev by Date: Making efficient use of tracking rects
  • Next by Date: Outlets not allowing direct access...
  • Previous by thread: newbie & calling functions from other classes
  • Next by thread: Re: newbie & calling functions from other classes
  • Index(es):
    • Date
    • Thread