• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MacOS X 10.4 and 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: MacOS X 10.4 and 10.5
      • From: Shawn Erickson <email@hidden>
    • Re: MacOS X 10.4 and 10.5
      • From: "Paul Sanders" <email@hidden>
  • Prev by Date: Re: NSAttributedDictionary crash
  • Next by Date: Re: NSAttributedDictionary crash
  • Previous by thread: Re: NSAttributedDictionary crash
  • Next by thread: Re: MacOS X 10.4 and 10.5
  • Index(es):
    • Date
    • Thread