On Aug 25, 2018, at 11:31 AM, Eric Schlegel <[email protected]> wrote:
> 
> 
> 
>> On Aug 24, 2018, at 5:36 AM, Lars C. Hassing <[email protected]> wrote:
>> 
>> Based on the content of the menubar in a newly created Cocoa app in Xcode
>> I created the complete menubar programmatically.
>> Using
>>   [NSApp setServicesMenu:servicesMenu];
>>   [NSApp setWindowsMenu:windowsMenu];
>>   [NSApp setHelpMenu:helpMenu];
>> Cocoa makes these menus “come alive” with updated content.
> 
> That will work also, although I must caution you that those aren’t public API 
> methods on NSApplication, so could be removed or changed in behavior in the 
> future, and you probably wouldn’t be allowed to place applications using 
> those methods in the Mac app store.

servicesMenu, windowsMenu, and helpMenu are documented properties of 
NSApplication, and they are not documented as read-only.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/carbon-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to