Re: Developing for Tiger and Panther;
Re: Developing for Tiger and Panther;
- Subject: Re: Developing for Tiger and Panther;
- From: Brian Bergstrand <email@hidden>
- Date: Wed, 27 Jul 2005 17:05:42 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jul 27, 2005, at 4:48 PM, Matt Budd (Madentec) wrote:
I am really stuck with this cross development when it comes to
subclasses. I've boiled it down to the simplest example that I can
not get to work.
1. Create a new Xcode 2.1 project on Tiger
2. Take off ZeroLink from the target's build settings
3. Add a new cocoa class called "untitled"
4. Change untitled.h to make it be a subclass of NSAnimation
(instead of NSObject)
5. Run the application on Tiger...it works correctly
6. Copy the application bundle to a Panther machine and run it...it
crashes with a crash log
7. Change untitled.h to instead of being a sublcass of NSAnimation
having a NSAnimation ivar
8. Build and run the app on Tiger...it works correctly
9. Copy and run the app on Panther...it also works correctly
Basically, what do I have to do to make step #6 not crash when it
runs on a Panther machine?
- Matt
Uhh, not use NSAnimation on Panther. It does not exist. You cannot
subclass from a class does not exist. NSAnimation is Tiger only. The
reason an ivar works is because it's just a ptr and until you point
it to something it's just a bag of bytes.
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFC6AU8edHYW7bHtqIRAuNMAJ9WdLcgql9dMknHIffO+flCpC8f3gCfa1X6
hyRbCYtSPoWz7cZfevQnzP0=
=I5de
-----END PGP SIGNATURE-----
_______________________________________________
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