Re: passing 2 parameters
Re: passing 2 parameters
- Subject: Re: passing 2 parameters
- From: Evan Schoffstall <email@hidden>
- Date: Sun, 06 Nov 2011 13:58:55 -0500
I think the problem is this:
-(void) insertToDB01:(NSString *) fieldValue0:(NSString *) fieldValue1
Shouldn't it be?:
-(void) insertAValue:(NSString *)fieldValue0 withAnotherValue:(NSString *) fieldValue1
--
Evan Schoffstall
Sent with
Sparrow
On Sunday, November 6, 2011 at 11:54 AM, droom departement wrote:
I'm calling a method from another class and like to pass multiple parameters.
Passing 1 parameter is no problem, adding the second one turns out in a
-[dbViewController insertToDB01:p2:]: unrecognized selector sent to instance 0x2000c18a0
2011-11-06 17:40:28.540 myLittleBook[2083:a0f] *** -[imageSorting hStoreText:]: -[dbViewController insertToDB01:p2:]: unrecognized selector sent to instance 0x2000c18a0 (error -10000)
my code snippit:
on hStoreText_(sender)
tell class "NSString" of current application to set test1 to its stringWithString_(test1Str)
tell class "NSString" of current application to set test2 to its stringWithString_(test2Str)
tell myRefToSQLObj to insertToDB01_p2_(test1, test2)
called method
-(void) insertToDB01:(NSString *) fieldValue0:(NSString *) fieldValue1 {
NSLog(@"phase1");
}
can anyone help me ?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden