MacOS X 10.4 and 10.5
MacOS X 10.4 and 10.5
- Subject: MacOS X 10.4 and 10.5
- From: xEsk PiV <email@hidden>
- Date: Sat, 28 Feb 2009 19:15:28 +0100
Hello,
I have some doubts with MacOS X 10.5 and 10.4:
1) If I compile my application with MacOS X SDK 10.5 and I run it
under MacOS X SDK 10.4 (and I don't use any explicit 10.5 class) it
will run without problems?
2) If I use a specific 10.5 class (i.e: NSDockTile) is obvious it
won't run under MacOS X 10.4, but if I code something like this, will
run under MacOS X 10.4?
Code example compiled with MacOS X SDK 10.5 but running under MacOS X 10.4:
- (void)setDockBadge:(int)value
{
if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4)
{
NSLog(@"Dock badge not supported");
}
else // macos x 10.5 or earlier
{
NSDockTile *dockTile = [NSApp dockTile];
[dockTile setBadgeLabel:[NSString stringWithFormat:@"%d",value]];
[dockTile display];
}
}
If it will fail in MacOS X 10.4, what is the correct way (if is
possible do it) to do this? Thank you for any information!
Kind regards,
Xesc.
_______________________________________________
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