Re: Newbie: Cannot use object as a parameter to a method
Re: Newbie: Cannot use object as a parameter to a method
- Subject: Re: Newbie: Cannot use object as a parameter to a method
- From: m <email@hidden>
- Date: Thu, 22 Apr 2004 12:29:53 -0700
On Apr 22, 2004, at 12:04 PM, Michael S. Tashbook wrote:
Any ideas?
- (NSString)rollAsString
{ // XCode reports the error here
return @"foo"; // Just a placeholder statement for now
}
You should be returning a pointer to an NSString i.e.NSString* not
NSString (note the asterisk).
_murat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.