• 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: Bindings for dynamically populated menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings for dynamically populated menu


  • Subject: Re: Bindings for dynamically populated menu
  • From: Michael Starke <email@hidden>
  • Date: Mon, 07 Apr 2014 12:49:29 +0200

If wanting to build a menu on the fly I've been using the menuNeedsUpdate delegate method.  The docs clearly state you can add/remove items this way.

https://developer.apple.com/library/mac/documentation/cocoa/reference/NSMenuDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/NSMenuDelegate/menuNeedsUpdate:


___m i c h a e l  s t a r k e____
geschäftsführer
HicknHack Software GmbH
www.hicknhack-software.com

___k o n t a k t____
+49 (170) 36 86 1 36
email@hidden

___H i c k n H a c k S o f t w a r e G m b H____
geschäftsführer - maik lathan | andreas reischuck | michael starke
bayreuther straße 32
01187 dresden
amtsgericht dresden HRB 30351
sitz - dresden

> On 07.04.2014, at 12:43, Jonathan Taylor <email@hidden> wrote:
>
>> On 7 Apr 2014, at 11:25, Keith J. Schultz wrote:
>>
>> Hi Jonny,
>>
>> try Menu items on the fly!
>>
>> To my knowledge you can not use IB!
>
> Thanks for your reply keith. I hadn't tried those search terms, but no that didn't get me anything relevant either. All I could find was one old thread in which various conflicting advice is given and it is reported that one promising approach results in crashes:
> http://www.cocoabuilder.com/archive/cocoa/29044-cocoa-building-menu-on-the-fly.html
>
> However, more blind searching around has led me to NSMenuDelegate, which looks to me what I want...
> _______________________________________________
>
> 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


  • Follow-Ups:
    • Re: Bindings for dynamically populated menu
      • From: Jerry Krinock <email@hidden>
References: 
 >Bindings for dynamically populated menu (From: Jonathan Taylor <email@hidden>)
 >Re: Bindings for dynamically populated menu (From: Jonathan Taylor <email@hidden>)

  • Prev by Date: Re: Bindings for dynamically populated menu
  • Next by Date: Re: Bindings for dynamically populated menu
  • Previous by thread: Re: Bindings for dynamically populated menu
  • Next by thread: Re: Bindings for dynamically populated menu
  • Index(es):
    • Date
    • Thread