Re: Developing for Tiger and Panther;
Re: Developing for Tiger and Panther;
- Subject: Re: Developing for Tiger and Panther;
- From: "Matt Budd (Madentec)" <email@hidden>
- Date: Wed, 27 Jul 2005 16:12:47 -0600
Exactly, but I would like some way to say if I am on Tiger, then go
ahead and +initialize my custom subclass from NSAnimation, and if I
am on Panther, then don't try to +initialize it (since it will fail
since NSAnimation is not in the Panther framework).
I will deal with the consequence of not having it instantiated later
by checking to see if NSAnimation is a valid class (and thus seeing
if my subclass is avaliable), and if it isn't then I either won't use
that bit of functionality (i.e. won't animate something) or use my
own limited animation class.
- Matt
On Jul 27, 2005, at 4:05 PM, Brian Bergstrand wrote:
-----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