Thanx for helping me! Another newbie question inside.
Thanx for helping me! Another newbie question inside.
- Subject: Thanx for helping me! Another newbie question inside.
- From: "email@hidden" <email@hidden>
- Date: Tue, 21 Aug 2001 14:59:18 +0200
Thanks
for answering!
int myStringLength=[myString length] works as exspected.
Well, I'm running into new trouble.
I'd like to declare and use a function inside my action. Just to avoid
redundancy.
- (IBAction)click:(id)sender
{
... my weird bunch of code
}
By example a function for square root.
In PHP this is done by:
function squareRoot ($arg) {
return $arg*$arg;
}
and can be called like:
$sq=squareRoot(2);
How do I declare this in Objective-C?
In case this is the most stupid question of the month, please tell me where
I can found a more "basic style" introduction in Objective C.
TIA,
Martin