• 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: How do I get those 1 pixel black lines into my app window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get those 1 pixel black lines into my app window?


  • Subject: Re: How do I get those 1 pixel black lines into my app window?
  • From: "Sumner Trammell" <email@hidden>
  • Date: Fri, 8 Aug 2008 11:54:25 -0400

Thanks guys, this works beautifully.

-s



On Thu, Aug 7, 2008 at 4:20 PM, Ken Ferry <email@hidden> wrote:
> Hi Sumner,
>
> Check out the discussion of -[NSWindow
> setContentBorderThickness:forEdge:] in the AppKit release notes.
> Here's some of it, but it's probably better to read it in context.
>
> "The behavior of -setContentBorderThickness:forEdge:NSMinYEdge and
> -setAutorecalculatesContentBorderThickness:NO forEdge:NSMinYEdge for
> non-textured windows will do the following: The top gradient will be
> repeated in the bottom border, separator lines will be drawn between
> the content and the bottom border, and the bottom corner will be
> rounded. Other methods on non-textured windows or unused edges will
> return 0.0 or YES."
>
> http://developer.apple.com/releasenotes/Cocoa/AppKit.html#NSWindow
>
> -Ken
>
> On Thu, Aug 7, 2008 at 11:20 AM, Sumner Trammell
> <email@hidden> wrote:
>> Hi, I've notced that in most apps, at the top and bottom, there is a 1
>> pixel black line separating the gray window
>> from the (usually) white content.
>>
>> This looks better than stock, which of course is why everybody and
>> Apple seems to be doing it. What is the canonical way to do this?  Are
>> people using horizontal line NSBox objects to create these?  That
>> seems like a kludge.  They also make for Illegal Geometry complaints
>> from Interface Builder.
>>
>>
>> Thanks,
>> -s
>> _______________________________________________
>>
>> 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
>>
>
_______________________________________________

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: 
 >How do I get those 1 pixel black lines into my app window? (From: "Sumner Trammell" <email@hidden>)
 >Re: How do I get those 1 pixel black lines into my app window? (From: "Ken Ferry" <email@hidden>)

  • Prev by Date: Control-dragging from menu item in MainMenu.nib to File's Owner object in MyDocument.nib
  • Next by Date: Re: Xcode 3.1 Debugger Problems
  • Previous by thread: Re: How do I get those 1 pixel black lines into my app window?
  • Next by thread: Xcode and Cocoa docs and the Preview sidebar TOC
  • Index(es):
    • Date
    • Thread