Thanks for the advice everyone. What I ended up doing was just making a plain HUD panel (which is somewhat rounded)

On 2009-10-05, at 9:25 PM, Rob Keniger <r...@menumachine.com> wrote:


On 06/10/2009, at 1:07 PM, Graham Cox wrote:

Views are defined by their frame/bounds rectangles. But there's nothing to stop you from setting a round-cornered clipping path at the start of your view's drawRect method to clip the view's content to a round-cornered rect. Since the view draws nothing by default, the fact that the "real" edge is a rectangle will not be apparent.

Unfortunately the OP is still going to find things difficult. A lot of Apple's standard views, such as NSTableView/NSScrollView seem to set their own custom clipping path during drawing which overrides anything you set, so it's not as straightforward as it might seem.

I agree with Kyle, it is probably a good idea to rethink the design.

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/pcwiz.support%40gmail.com

This email sent to pcwiz.supp...@gmail.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to