NSShadow with [bezierPath addClip]

2013-12-31 Thread Leonardo
In my NSView subclass, I have to draw an image within a bezierPath and apply an NSShadow to the result. So within the drawRect: method I add [bezierPath addClip]; [mImage drawInRect:inRect fromRect:fromRect operation:NSCompositeSourceOver fraction:mOpacity]; It works. The image gets cli

Re: NSView subclass does not seem to start

2013-12-31 Thread Alex Hall
On Dec 31, 2013, at 12:45 AM, Andy Lee wrote: > On Dec 30, 2013, at 5:34 PM, Alex Hall wrote: >> Anyway, the problem remains that I need to capture keystrokes (and >> eventually mouse movements) in a subclass of NSView, but nothing seems to >> happen. Since this is an audio game, there is no

Re: NSShadow with [bezierPath addClip]

2013-12-31 Thread Fritz Anderson
On 31 Dec 2013, at 6:15 AM, Leonardo wrote: > In my NSView subclass, I have to draw an image within a bezierPath and apply > an NSShadow to the result. > So within the drawRect: method I add > > [bezierPath addClip]; > [mImage drawInRect:inRect fromRect:fromRect > operation:NSCompositeSo

Re: NSView subclass does not seem to start

2013-12-31 Thread Andy Lee
On Dec 31, 2013, at 9:13 AM, Alex Hall wrote: > Sorry, I should have specified - I'm so used to seeing it I didn't even > think. The loop is based on an NSTimer and is used to process sound position > updates. Basically, I use it to pan sounds and draw updates. I'm not putting > key management

Re: NSShadow with [bezierPath addClip]

2013-12-31 Thread Leonardo
Thank you Fritz. I am afraid your method doesn't work in my case. Me too I need to draw a rounded rect path with shadow. But its background has an half-a-transparent color. So if I "stroke" the bezierPath (to cast the shadow) I can quite see the path as a line. If I "fill" the bezierPath (to cast t

Re: comboBoxSelectionDidChange not called

2013-12-31 Thread Scott Ribe
On Dec 30, 2013, at 2:39 PM, Quincey Morris wrote: > On Dec 30, 2013, at 13:06 , Scott Ribe wrote: > >> Does anyone have any further suggestion for me??? > > The release notes for 10.6 say this: > >> For apps linked on or after SnowLeopard, if a combo box is configured to >> send action on