Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7735255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:27:18+00:00 2026-06-01T07:27:18+00:00

Does anyone know how you can make a cocoa sheet with rounded corners like

  • 0

Does anyone know how you can make a cocoa sheet with rounded corners like the image below?

Xcode 4 Rounded Sheet

Xcode 4 Sheet - Rounded Corners

I’ve looked all over but I cannot seem to find anything on it. I’m not sure if I’m looking in the wrong places, or if this just isn’t a common practice. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:27:20+00:00Added an answer on June 1, 2026 at 7:27 am

    Edit: it turns out that this behavior is even easier if you’re targeting OS X Lion or later – simply calling [sheet setOpaque:NO] is enough to enable rounded corners.


    This behavior is pretty easy to reproduce. Initialize your sheet to be a transparent borderless window:

    self.sheet = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 300, 300) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered | NSTitledWindowMask defer:YES];
    [self.sheet setOpaque:NO];
    [self.sheet setBackgroundColor:[NSColor clearColor]];
    

    Add as a subview a custom view:

    [[self.sheet contentView] addSubview:[[IFWindowView alloc] initWithFrame:[[self.sheet contentView] frame]]];
    

    That custom view should do its drawing as follows:

    #define RADIUS 5.0
    NSBezierPath *bezierPath = [NSBezierPath bezierPathWithRoundedRect:NSMakeRect(self.bounds.origin.x, self.bounds.origin.y + RADIUS, self.bounds.size.width, self.bounds.size.height) xRadius:RADIUS yRadius:RADIUS];
    [[NSColor windowBackgroundColor] set]; // In production, use the appropriate color with alpha for transparency.
    [bezierPath fill];
    

    Here is some sample code to demonstrate this in action: http://d.pr/l9DB

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how I can make a program with user interface like BIOS
Does anyone know how can I make change for existing date value in SQL
Does anyone know how I can make this bit of code have a .fadein
Does anyone know of a jquery plugin that can make a thumbnail of an
Does anyone know how can I make a sleep in javascript before next line
Does anyone know how I can make this SWF file not autoplay? when play=true,
Does anyone know how I can make document.write with a script tag block execution?
Does anyone know how can I cut a string and then assign into an
Does anyone know how can I detect the browser type in css? What I
Does anyone know where can I find recent data on PHP4 vs PHP5 market

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.