• 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: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5


  • Subject: Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5
  • From: Greg Parker <email@hidden>
  • Date: Tue, 9 Mar 2010 15:25:19 -0800

On Mar 9, 2010, at 2:57 PM, Steve Mykytyn wrote:
> I know all about separating 10.6 from 10.5 stuff.  The problem is: I've been testing on a 10.5 PPC machine, where everything works fine.  On 10.5 Intel, it does not finish starting up, just crashes out.  Never gets anywhere that I would use something 10.6 related.
>
> Trying to be as clear as possible:
>
> 10.6 Intel Snow Leopard - works fine
> 10.5 Intel Leopard - crashes complaining about NSRunningApplication
> 10.5 PPC Leopard - works fine
>
> Even if the startup sequence for an app was different between PPC and Intel, I'd expect to eventually crash out on both PPC and Intel if it was something I'm doing in the source code.

I'm guessing that you crash on 10.5/Intel/Leopard/64-bit and do not crash on 10.5/Intel/Leopard/32-bit.

If you write anything like this and run on a system where the class is not present, you will crash on 64-bit but may or may not crash on 32-bit:

   // BAD
   [NSRunningApplication someMethod];

If NSRunningApplication may be absent at runtime, then you must not refer to it directly, ever. You must use NSClassFromString() everywhere:

   // GOOD
   Class nsRunningApplicationClass = NSClassFromString(@"NSRunningApplication");
   [nsRunningApplicationClass someMethod];


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5 [KIND OF SOLVED]
      • From: Steve Mykytyn <email@hidden>
References: 
 >10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5 (From: Steve Mykytyn <email@hidden>)
 >Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5 (From: Steve Christensen <email@hidden>)
 >Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5 (From: Steve Mykytyn <email@hidden>)

  • Prev by Date: Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5 (repost)
  • Next by Date: Re: Bison/Yacc with Objective-C ?
  • Previous by thread: Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5
  • Next by thread: Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5 [KIND OF SOLVED]
  • Index(es):
    • Date
    • Thread