• 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: call "setContentBorderThickness:forEdge:" in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: Re: call "setContentBorderThickness:forEdge:" in Tiger
  • Next by Date: attributesOfItemAtPath problem
  • Previous by thread: Re: call "setContentBorderThickness:forEdge:" in Tiger
  • Next by thread: Re: call "setContentBorderThickness:forEdge:" in Tiger
  • Index(es):
    • Date
    • Thread