Re: Updating NSMenu while it's open

2012-04-24 Thread vinayak pai
and mouse is still then the menu won't update. Is there a way to update the menu while it's open without any mouse movement like System WiFi menu? Best regards, VinPai On Fri, Apr 20, 2012 at 11:42 AM, Ken Thomases k...@codeweavers.com wrote: On Apr 18, 2012, at 3:14 PM, vinayak pai wrote: I

Re: Updating NSMenu while it's open

2012-04-24 Thread vinayak pai
posting an application-defined event (NSEvent of type NSApplicationDefined) to the event queue doesn't solve the menu refreshing issue. On Sat, Apr 21, 2012 at 3:44 PM, Ken Thomases k...@codeweavers.com wrote: On Apr 20, 2012, at 1:32 PM, vinayak pai wrote: Yes. I am facing the same problem. I

Re: Updating NSMenu while it's open

2012-04-19 Thread vinayak pai
System's wifi menu updates while it's open. How to update the menu like this? On Thu, Apr 19, 2012 at 9:02 PM, Andy Lee ag...@mac.com wrote: On Apr 18, 2012, at 10:46 PM, Dave DeLong wrote: On Apr 18, 2012, at 7:43 PM, Andy Lee wrote: [...] Another example is the File menu in some apps such as

Updating NSMenu while it's open

2012-04-18 Thread vinayak pai
Hi All, I have a NSMenu with dynamically added NSMenuItems. The NSMenu is not refreshing properly while it's kept open. The NSMenu update method is called in NSRunLoopCommonModes. I appreciate any help with this. Best regards, VinPai ___ Cocoa-dev

Adding NSControl to IKImageBrowserCell

2012-01-12 Thread vinayak pai
Hi All, I've built a custom IKImageBrowserCell which is displaying my images in an IKImageBrowser without any issues. I'd like to add an NSButton to IKImageBrowserCell enable the delete functionality on each image. So that when I click the button, I can remove item at selected index and reload