Re: Problem running on 10.3 when building with Xcode 3.0: NSAffineTransform not found in Foundation
Re: Problem running on 10.3 when building with Xcode 3.0: NSAffineTransform not found in Foundation
- Subject: Re: Problem running on 10.3 when building with Xcode 3.0: NSAffineTransform not found in Foundation
- From: Alastair Houghton <email@hidden>
- Date: Thu, 20 Dec 2007 11:03:35 +0000
On 20 Dec 2007, at 10:40, Chris Suter wrote:
Hi,
I've got a problem running on 10.3 where it's failing to run because
it complains that NSAffineTransform cannot be found by dyld (it's
expecting to find it in Foundation). On 10.3 NSAffineTransform is
actually in AppKit so it has a fair point, but it was working fine
when I built it with earlier versions of Xcode.
I'm guessing it used to work fine because the symbol was being
lazily bound (presumably it doesn't mind that the symbol is in
AppKit rather than Foundation when lazily binding). The Leopard
linker, for some reason, isn't marking the symbol to be lazily
bound. That's the only difference I've found so far.
Can anyone offer me some help with this? I'm looking for a
workaround. I haven't filed a bug yet but I will do tomorrow.
Well one workaround is to do
NSClassFromString(@"NSAffineTransform")
or
objc_getClass("NSAffineTransform")
to get the class.
Obviously you only want to do that once, rather than every time you
would have used NSAffineTransform.
It would be better if this "just worked" though.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden