• 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
Call Method Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Call Method Question


  • Subject: Call Method Question
  • From: "jay" <email@hidden>
  • Date: Thu, 31 Jul 2003 10:07:08 -0400

How do you call an objective c method of a class that I defined.

Here is my class:

@interface MyClass : NSObject
{
int aVariable;
}
- init;
- (void)doSomething;

@end

Here is my applescript code which returns the error "the variable var is not defined"

set var to call method "doSomething" of class "MyClass"

and I tried:

set var to call method "doSomething"


QUESTION 2 ---------------------------------------------------

In an objective c main file I would define an instance of MyClass like

MyClass *myclass;

Is there a way to do this in applescript so that I do not lose the variable values located in the instance of MyClass but rather keep the variables so I can store and use them throughout the program?

Thanks in advance,
-j






________________________________________________________________
Sent via the WebMail system at 1st.net
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: is this possible?
  • Next by Date: Re: Drag and Drop
  • Previous by thread: is this possible?
  • Next by thread: Re: Very basic question about Address Book app
  • Index(es):
    • Date
    • Thread