• 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
Re: Tiger-style toolbars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tiger-style toolbars


  • Subject: Re: Tiger-style toolbars
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 20 Nov 2005 01:19:16 +0100

Am 19.11.2005 um 01:48 schrieb Seth Willits:
On Nov 18, 2005, at 3:32 PM, Uli Kusterer wrote:
Am 18.11.2005 um 16:01 schrieb I. Savant:
You can do things only for specific OS versions by using the following:

#ifdef MAC_OS_X_VERSION_10_4
	//10.4-specific code here
#endif

I think you meant to write: (untested, written in Mail):

unsigned long versNum;

if( noErr == Gestalt( gestaltSystemVersion, &versNum ) && versNum >= 0x1040 )
tenfourspecificmethod();

Now if you compile that on 10.4 and run it on 10.3 will actually run without some kind of framework version error?

Depends on what you do in tenfourspecificmethod(). You can call a method added to an object/class. You can't use any newly-added classes directly, but if you use it through NSClassFromString(). For most of the other stuff, you'll usually want to load a bundle containing the code that'll only run on the new version, or use weak linking.


Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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
References: 
 >Tiger-style toolbars (From: Dan Price <email@hidden>)
 >Re: Tiger-style toolbars (From: "I. Savant" <email@hidden>)
 >Re: Tiger-style toolbars (From: Uli Kusterer <email@hidden>)
 >Re: Tiger-style toolbars (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Access another application's recent document list
  • Next by Date: Newbie: Drag of Custom Type from NSOutlineView
  • Previous by thread: Re: Tiger-style toolbars
  • Next by thread: Custom controls in Interface Builder?
  • Index(es):
    • Date
    • Thread