AppKit: request for public API to disable NSMenu's padding

Originator:i.am.rodionovd
Number:rdar://19661956 Date Originated:30-Jan-2015
Status:Open Resolved:No
Product:OS X SDK Product Version:
Classification:Enhancement Reproducible:Always
 
Summary:
By default, every NSMenu instance includes a 3-4 px padding on both top and bottom edges.

The fact isn't even noticed until you set a custom `view` property for the first or the last menu item. In that case you'll see a tiny whitespace just above the first menu item's view and below the last menu item's view (which definitely ruin the desired appearance of the menu).

The request is to make it possible to turn this padding space off without using any private APIs.

Steps to Reproduce:
1. Create an NSMenu instance;
2. Create an NSMenuItem object with a custom view set to its `view` property;
3. Make this object the first item of the menu;
4. Show the menu;

Expected Results:
There isn't any whitespace above the first menu item's view.

Actual Results:
There *is* a whitespace.

Notes:
There's a private NSMenu method for this: `_setHasPadding:onEdge:`.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!