Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread John Joyce
On Feb 15, 2014, at 6:29 AM, Leonardo 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 popUp outlet to

Re: OpenCL Basic Programming Question

2014-02-15 Thread Uli Kusterer
On 14 Feb 2014, at 15:53, Gerriet M. Denkmann 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 wrote: > On 14 Feb 2014, at 15:53, Gerriet M. Denkmann 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 availab

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Graham Cox
On 15 Feb 2014, at 8:29 am, Leonardo 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. Items in the parent menu

Re: Hooking up Help menu item

2014-02-15 Thread Graham Cox
On 15 Feb 2014, at 8:40 pm, Roland King 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 Delegate bu

Re: Hooking up Help menu item

2014-02-15 Thread Roland King
> On 15 Feb, 2014, at 18:42, Graham Cox 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 is barely used in

Re: Hooking up Help menu item

2014-02-15 Thread Graham Cox
On 15 Feb 2014, at 8:40 pm, Roland King 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 > window wasn

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 on

[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 p

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 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 archives, an Apple engineer

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 wrappe

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 > Subject: progress indicator strange partial overlay > Date: 15 February 2014 10:41:08 pm IST > To: Cocoa-dev List List > > Hi, > > I have a blue background view and over i

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 Roger

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 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, dangerwillrobinsondan...@gmai

Re: Display selectd sub-menuItem in NSPopUpButton

2014-02-15 Thread Graham Cox
On 16 Feb 2014, at 5:00 am, Leonardo 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 back to the root paren

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 wrote: > >

Re: [SOLVED] progress indicator strange partial overlay

2014-02-15 Thread Graham Cox
On 16 Feb 2014, at 4:36 am, Nick Rogers 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 YES from -isOpa

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 i