• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Warnings with NSError **
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Warnings with NSError ** (From: Jonathon Mah <email@hidden>)
 >Re: Warnings with NSError ** (From: Pontus Ilbring <email@hidden>)

  • Prev by Date: Re: NSBezierPath - quadratic curve with one control point?
  • Next by Date: Re: NSNotification / Core Data roadblock [solved]
  • Previous by thread: Re: Warnings with NSError **
  • Next by thread: Set of controls offered in IB palette
  • Index(es):
    • Date
    • Thread