• 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: Sat, 19 Nov 2005 00:32:38 +0100

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();


Not sure whether OS X is returned as 0x1000 or 0x0A00, but it's some sort of binary-coded decimal. The docs for Gestalt should give you the info. Also, I'm not sure whether they're still adding stuff to Gestalt, but maybe you can find a Gestalt selector that actually tells you whether unified look is available, which would be better than relying on the system version in case another step backwards like the move from G4 to G3 in Rosetta happens.

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
  • Follow-Ups:
    • Re: Tiger-style toolbars
      • From: Seth Willits <email@hidden>
    • Re: Tiger-style toolbars
      • From: John Stiles <email@hidden>
References: 
 >Tiger-style toolbars (From: Dan Price <email@hidden>)
 >Re: Tiger-style toolbars (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: addSubView: [NSView subviews] doesn't show any subviews, after adding subviews.
  • Next by Date: Re: addSubView: [NSView subviews] doesn't show any subviews, after adding subviews.
  • Previous by thread: Re: Tiger-style toolbars
  • Next by thread: Re: Tiger-style toolbars
  • Index(es):
    • Date
    • Thread