Re: 10.4 & 10.5 compatibility
Re: 10.4 & 10.5 compatibility
- Subject: Re: 10.4 & 10.5 compatibility
- From: Steve Christensen <email@hidden>
- Date: Sun, 28 Jun 2009 18:07:14 -0700
On Jun 28, 2009, at 5:09 PM, Stephen Blinkhorn wrote:
I have just noticed that some standard Cocoa objects look very
different on 10.4 compared to 10.5. In particular NSPopUpMenu and
NSButton objects are being drawn as much larger controls on 10.4
(rounded rect style, mini size). I am creating xib files via IB on
Leopard.
There is no guarantee that standard views will adhere to a particular
look or size across OS versions. You can either create multiple per-
OS nibs that you load programmatically or a single version that has
appropriate spacing for the OS version you know about.
Also, I am using some standard icons like NSUserGroup and such
which are not being displayed within NSButton at all on 10.4. I
can probably find these and add them into my bundle but it seems
curious.
That string constant for that icon is only defined in the 10.5 SDK
version of NSImage.h as
APPKIT_EXTERN NSString *const NSImageNameUserGroup
AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
Thus I would not expect that the image (at least using that name) is
available on a system running Tiger.
I am testing on 10.4.6 which is the version of my install DVD so my
question is whether there is a minimum Tiger version that includes
Leopard compatibility for this kind of stuff? 10.4.9?
The minimum OS version that includes Leopard compatibility is, by
definition, 10.5.0. If you're using Leopard-only features —whether
classes, methods or resources— and you want to run on a Tiger system,
you'll need to provide an appropriate alternative or gracefully
downgrade the functionality you provide. For the case of an icon,
that may mean that you need to embed your own version; for the case
of code, you need a runtime check that does the right thing for each
OS version.
steve
_______________________________________________
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