On Mon, Aug 25, 2008 at 3:14 PM, Matt Ball <[EMAIL PROTECTED]> wrote:
> Hi Georg,
>
> How about doing something like this? (typed in Mail, so check for
> typos). Using the preprocessor macros should also be a *bit* more
> efficient, since it won't be doing any checks at runtime.
>
> {
> #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
> windowStyle ^= NSTexturedBackgroundWindowMask;
> #endif
>
> self = [super initWithContentRect:contentRect styleMask:windowStyle
> backing:bufferingType defer:deferCreation];
>
> #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
> [self setContentBorderThickness:27.0 forEdge: NSMinYEdge];
> #endif
>
> return self;
> }...and when the above code is built against the 10.5 SDK but run on a 10.4 system? You will have to do runtime checks if the application is expected to run on 10.4 and 10.5 or later systems. -Shawn _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
