Pages

Thursday, August 8, 2013

ApplescriptObjectiveC (ASOC): setLabel:forSegment:

Hi there,

 

I use ApplescriptObjectiveC (ASOC) in my programs, but I'm extremely bad at giving cocoa objects orders.

I saw that there was a command "call method ...", and it looked extremely handy, but it doesn't work on Lion (which my Mac uses).

1: Is there an alternative to "call method ..."?

 

Besides that:

2: Does anybody know tutorials or sites that offer free knowledge for ASOC?

 

And my real question:

I have a NSSegmentedControl (button), and I want to use the

(void)setLabel:(NSString *)label forSegment:(NSInteger)segment command.

As I've understood, I should change such commands into

logintextbutton's setLabel_("Delete") forSegment_(2)

 

But this throws up the error "Expected end of line, ect. but found identifier."

3: Who can solve this mystery?

 

Really, really thanks

 

Isaiah

 

P.S. I will only reward with "solved questions" for the third question.

Nevertheless I will reward "helpful answer" to every helpful answer (:


View the original article here

0 comments:

Post a Comment