• 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: Crashing on all relevant exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crashing on all relevant exceptions


  • Subject: Re: Crashing on all relevant exceptions
  • From: Shaun Wexler <email@hidden>
  • Date: Mon, 7 Aug 2006 20:19:22 -0700

On Aug 7, 2006, at 8:06 PM, Shaun Wexler wrote:

if (className && (appClass = NSClassFromString(className)) = Nil) {
appClass = [NSApplication class];
}

!@#$!#$^&* typos. Instead, use this:

if (!className || (appClass = NSClassFromString(className)) == Nil) {
[NSException raise:NSInternalInconsistency format:@"Unknown NSApplication subclass: %@", className];
}


--
Shaun Wexler
MacFOH
http://www.macfoh.com

"No problem is so formidable that you can't walk away from it." - Charles Schulz


_______________________________________________ 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: 
 >Crashing on all relevant exceptions (From: Aaron Jacobs <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Nick Zitzmann <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Aaron Jacobs <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Nick Zitzmann <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Aaron Jacobs <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Shaun Wexler <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Nick Zitzmann <email@hidden>)
 >Re: Crashing on all relevant exceptions (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: Crashing on all relevant exceptions
  • Next by Date: ftp file busy?
  • Previous by thread: Re: Crashing on all relevant exceptions
  • Next by thread: Re: Crashing on all relevant exceptions
  • Index(es):
    • Date
    • Thread