Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread John Joyce
On Feb 15, 2014, at 6:29 AM, Leonardo mac.iphone@gmail.com wrote: Hi John, Thank you for the code. I suppose I missed something because it doesn’t work as expected. I did: I created a popUpMenu on IB and put it on the window and connected to the outlet popUpButton. I connected the

Re: OpenCL Basic Programming Question

2014-02-15 Thread Uli Kusterer
On 14 Feb 2014, at 15:53, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I am trying to build the Basic Programming Sample in:

Re: OpenCL Basic Programming Question

2014-02-15 Thread Gerriet M. Denkmann
On 15 Feb 2014, at 15:51, Uli Kusterer witness.of.teacht...@gmx.net wrote: On 14 Feb 2014, at 15:53, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I am trying to build the Basic Programming Sample in:

Hooking up Help menu item

2014-02-15 Thread Roland King
I want the help menu item in my app to redirect to a webpage, the redirect I can do fine, it's hooking it up confuses me. That menu item sends by default showHelp: to First Responder. So I wrote a showHelp: method in the App Delegate but it doesn't get called, I still get the 'help not

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Graham Cox
On 15 Feb 2014, at 8:29 am, Leonardo mac.iphone@gmail.com wrote: I would like to re-click and pre-select that meu item but I didn¹t succeed yet. There isn't a good way to do that using NSPopUpButton, or menus in general, because a submenu is never laid over the actual clicked button.

Re: Hooking up Help menu item

2014-02-15 Thread Graham Cox
On 15 Feb 2014, at 8:40 pm, Roland King r...@rols.org wrote: want the help menu item in my app to redirect to a webpage, the redirect I can do fine, it's hooking it up confuses me. That menu item sends by default showHelp: to First Responder. So I wrote a showHelp: method in the App

Re: Hooking up Help menu item

2014-02-15 Thread Roland King
On 15 Feb, 2014, at 18:42, Graham Cox graham@bigpond.com wrote: The application delegate is after NSApplication in the responder chain, so because -showHelp: is a method of NSApplication, the method isn't forwarded to the delegate. That's the piece I was missing. The responder chain

Re: Hooking up Help menu item

2014-02-15 Thread Graham Cox
On 15 Feb 2014, at 8:40 pm, Roland King r...@rols.org wrote: This is the second responder chain issue which has confused me, another menu item had to be hooked up to point directly to an NSView subclass because sending that to First Responder didn't work either. I eventually decided the

NSOpenGLContext destroying textures of another context

2014-02-15 Thread MeldaProduction
Hi, I'm using NSOpenGLContext to optimize drawing in AU plugins. There are multiple plugins and each can have multiple instances. So each plugin creates a global NSOpenGLContext and attach particular NSView contexts to it, so that the textures do not need do be duplicated. Problem: When I open

[no subject]

2014-02-15 Thread Vojtěch Meluzín
Hi, I'm using NSOpenGLContext to optimize drawing AU plugins. There are multiple plugins and each can have multiple instances. So each plugin creates a global NSOpenGLContext and attach particular NSView contexts to it, so that the textures do not need do be duplicated. Problem: When I open one

NSOpenGLContext destroying textures of another context

2014-02-15 Thread MeldaProduction
(sorry for double post, forgot the subject) Hi, I'm using NSOpenGLContext to optimize drawing AU plugins. There are multiple plugins and each can have multiple instances. So each plugin creates a global NSOpenGLContext and attach particular NSView contexts to it, so that the textures do not need

Re: Display selected sub-menuItem in NSPopUpButton

2014-02-15 Thread Jerry Krinock
On 2014 Feb 15, at 02:34, Graham Cox graham@bigpond.com wrote: There isn't a good way to do that using NSPopUpButton, or menus in general Indeed. A year or so ago or so I was trying to give my users some guided “help” by popping up menus and selecting items. Probably in this list

progress indicator strange partial overlay

2014-02-15 Thread Nick Rogers
Hi, I have a blue background view and over it in the centre is a white background view (simple custom views). In the inner white custom view, even if I create the progress bar (determinate) via code or IB (Xcode 5), the later end of the bar is enclosed in some sort of bluish wrapper. The

Fwd: progress indicator strange partial overlay

2014-02-15 Thread Nick Rogers
Hi, Here’s the image URL: http://i60.tinypic.com/209m6bd.jpg Best, Nick Begin forwarded message: From: Nick Rogers roger...@mac.com Subject: progress indicator strange partial overlay Date: 15 February 2014 10:41:08 pm IST To: Cocoa-dev List List cocoa-dev@lists.apple.com Hi, I have

Fwd: [SOLVED] progress indicator strange partial overlay

2014-02-15 Thread Nick Rogers
Hi, The about last 30% of the length of the progress bar was passed onto the drawRect: of the blue background custom view as dirtyRect. Wonder what causes it. Solved it by checking dirtyRect and then skipping drawing [NSRectFill(); etc]. Wishes, Nick Begin forwarded message: From: Nick

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Leonardo
I think there should be a way to just open and display the submenus and highlight a menu item, even if the mouse is elsewhere. Then if the mouse moves and select a different menuItem, ok, I do. Otherwise, at the mouseUp, if the mouse didn't move or it is out of the menu area, I leave the previous

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread dangerwillrobinsondanger
Hi Leonardo You can post it to github or email it but I honestly don't believe there's an API that will do what you want it to do. At least nothing that will do it well. Certainly not gracefully. And it would be a lot of work that would get you little return. You'll have to try to control the

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Jerry Krinock
On 2014 Feb 15, at 10:00, Leonardo mac.iphone@gmail.com wrote: I think there should be a way to just open and display the submenus and highlight a menu item, even if the mouse is elsewhere. Well, if this is a non-sandboxed Mac app, anything is *possible*. On 2014 Feb 15, at 10:09,

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Graham Cox
On 16 Feb 2014, at 5:00 am, Leonardo mac.iphone@gmail.com wrote: I think there should be a way to just open and display the submenus and highlight a menu item, even if the mouse is elsewhere. But there isn't. You might be able to come up with a whole bunch of code that follows the tree

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread dangerwillrobinsondanger
Now that I think about it clearly, you might want to consider something like NSPathControl similar to the way Xcode lets you navigate files. It probably makes more sense for showing a hierarchical selection in a small space. Sent from my iPhone On 2014/02/16, at 3:00, Leonardo

Re: [SOLVED] progress indicator strange partial overlay

2014-02-15 Thread Graham Cox
On 16 Feb 2014, at 4:36 am, Nick Rogers roger...@mac.com wrote: The about last 30% of the length of the progress bar was passed onto the drawRect: of the blue background custom view as dirtyRect. Wonder what causes it. Probably because neither the progress view or your other view returns

Re: [SOLVED] progress indicator strange partial overlay

2014-02-15 Thread Nick Rogers
Hi, I added -isOpaque to return YES to both the overlapping custom view and even sub-classed progress bar and set them to return -isOpaque as YES. Although the problem is not there when progressing, but at the end when a alert panel comes to from and progress bar returns to 0.0, the same patch