Re: Warnings with NSError **
Re: Warnings with NSError **
- Subject: Re: Warnings with NSError **
- From: Jonathon Mah <email@hidden>
- Date: Sat, 17 Dec 2005 19:02:16 +1030
On 2005-12-17, at 03:33, Pontus Ilbring wrote:
+ (id)patchWithContentsOfFile:(NSString *)path error:(NSError **)
outError
{
return [[(MyClass *) [self alloc] initWithContentsOfURL:[NSURL
fileURLWithPath:path] error:outError] autorelease];
}
The type of [self alloc] is id, so the compiler can't tell if it is
supposed to use NSAppleScript's initWithContentsOfURL:error: or your
without explicit casting.
Ah of course, that fixed it. Brilliant! Thanks, Pontus and Alastair!
Jonathon Mah
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden