Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call "setContentBorderThickness:forEdge:" in Tiger



On Mon, Aug 25, 2008 at 3:14 PM, Matt Ball <email@hidden> 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@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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >call "setContentBorderThickness:forEdge:" in Tiger (From: Georg Seifert <email@hidden>)
 >Re: call "setContentBorderThickness:forEdge:" in Tiger (From: "Matt Ball" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.