Re: beginner obj-c question
Subject : Re: beginner obj-c question
From: Dave MacLachlan <email@hidden >
Date: Fri, 4 Apr 2008 09:49:45 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=BhB/XLsKW+wKPzC0lI6+o7ffguz8iYBrlqUboIoQ65g=; b=bBMhulegOd2HNh0PuDlpsjd3mTfAxEeoyOJdFNgh3xQIYnRwH9OyimxOEhH1QL8bRzWskG7+S07+JH2vkHa4iTBoIPfhJIhSHQ6VU52BtjIXYilgqRen40jEVrIYDJ3G1Uv15P4KH2hP449MRNjIoLNNihKJE7WbHFASMrbiJkc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=hWQ+65Y2gM6UFnp/yambMYRdyRL3r0oRH8IpzIdI6YcxE0237g5EMgKuSGHjAmCk5bIO+m0QkKuMVS+T1P/VJWs/byuaP9jfBTDPVV1yrfLDaoRMMZXQ7pc/h6QsUGun0DWP73+SqvB7YAWCViiSRzkHhNgXAXtqvIfI2NZxAvs=
On Apr 04, 2008, at 09:32 , Baiss Eric Magnusson wrote:
In trying to learn obj-c I decided to factor the button code from
HelloWorldClassic, the factored code compiles ok but the call is
flagged.
Could someone tell me how the call should be?
- (UIButton *)makeButton: (NSString *)bkgrdImage: (NSString
*)btnName {
...
return button;
}
UIButton *button = self makeButton[ (NSString *)@"Button.png":
(NSString *)@"Login" ];
I think you want:
UIButton *button = [self makeButton:@"Button.png" bkgrdImage:
@"Login" ];
Cheers,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.