Re: call "setContentBorderThickness:forEdge:" in Tiger
Re: call "setContentBorderThickness:forEdge:" in Tiger
- Subject: Re: call "setContentBorderThickness:forEdge:" in Tiger
- From: "Shawn Erickson" <email@hidden>
- Date: Mon, 25 Aug 2008 15:25:03 -0700
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:
This email sent to email@hidden