Re: NSSlider atop an image on OS 10.10 [SOLVED]

2015-02-22 Thread Tim Hewett
Solved by changing the base view to a generic NSView and adding the NSImageView and NSSlider to that view (the slider over the image view), rather than previously the NSImageView being the base view with the slider control added to it (worked fine up to 10.10). On 22 Feb 2015, at 03:06, Tim

NSSlider atop an image on OS 10.10

2015-02-21 Thread Tim Hewett
I have a NSMenuItem with a view containing an image and a NSSlider over the top of the image. The slider cell is subclassed to draw a different slider knob. Up to OS 10.9 the image shows through the slider view rect so that all that is above the image is the slider bar and the knob. However unde

Pop-up menus not working in NSOutlineView with image subview

2014-07-02 Thread Tim Hewett
I have an NSOutlineView with a NSImageView subview providing a background image. Now a pop-up menu has been added to the outline view it seems the menu only appears with a secondary click on a trackpad. Ctrl-click and the right mouse button do not pop up the menu. Removing the background image

Re: Not getting mouseDown: called when control-clicking in view in menu item SOLVED

2014-05-17 Thread Tim Hewett
Solved. The problem was caused by the view concerned having a menu set with setMenu:. With that remove it now gets mouseDown: with control held down. Many thanks for your thoughts. On 18 May 2014, at 01:44, Tim Hewett wrote: > As a test I have replaced the TrackView view with my own view

Re: Not getting mouseDown: called when control-clicking in view in menu item

2014-05-17 Thread Tim Hewett
up the responder chain, so you > ought to get it. > > I'd put a symbolic break on -[NSView rightMouseDown:] and see if it's being > called; that might shed some light on where it's going. > > > On May 16, 2014, at 8:11 AM, Tim Hewett wrote: > >>

Re: Not getting mouseDown: called when control-clicking in view in menu item

2014-05-16 Thread Tim Hewett
I have tried that too, no message for that either. Tim. On 16 May 2014, at 14:30, Eric Shepherd wrote: > Try implementing rightMouseDown: instead for that. > > Eric Shepherd > >> On May 15, 2014, at 12:39 PM, Tim Hewett wrote: >> >> I have a NSMenuItem with

Not getting mouseDown: called when control-clicking in view in menu item

2014-05-15 Thread Tim Hewett
I have a NSMenuItem with a custom view (inheriting from NSImageView) which needs to react to mouseDown: events. An NSTrackingArea has been setup for the view’s frame to enable this. When getting the events the modifierFlags are used to change behaviour, but this doesn’t work when control is hel

Hanging when using NSAppleScript

2014-04-20 Thread Tim Hewett
I’m using NSAppleScript to sent a message to another app using "tell application”. It works twice then the third time my app gets stuck in the call to executeAndReturnError: and doesn’t return. The code is as follows, with sample AppleScript: NSAppleScript *script = [[NSAppleScript all

Problem displaying progress indicator in dock icon

2012-08-15 Thread Tim Hewett
My app has been displaying a progress indicator superimposed over the dock icon successfully until more recent MacOS versions. With the latter it appears as a black bar instead of blue (currently testing on Mountain Lion but suspect Lion has the same problem, Snow Leopard and previous ones are o