Re: NSSliderCell, lockFocus question

2009-04-14 Thread Uli Kusterer
On 14.04.2009, at 08:42, Frederik Slijkerman wrote: I understand, but forking the code will hurt a lot, too. :-) I never said fork. I meant get it refactored in a way that the code that does the unneeded buffering is in a Windows-only class, while the rest stays available. OK, thanks, I

Re: NSSliderCell, lockFocus question

2009-04-13 Thread Frederik Slijkerman
Hi Uli, Currently I'm porting a custom slider control that needs to draw parts of the its interface, like the slider bar and the knob, in the OS style. The code that I currently have draws this to a temporary bitmap to avoid flicker on Windows and I'd like to keep it like this as much as possibl

Re: NSSliderCell, lockFocus question

2009-04-13 Thread Uli Kusterer
On 13.04.2009, at 22:30, Frederik Slijkerman wrote: Currently I'm porting a custom slider control that needs to draw parts of the its interface, like the slider bar and the knob, in the OS style. The code that I currently have draws this to a temporary bitmap to avoid flicker on Windows and I

Re: NSSliderCell, lockFocus question

2009-04-13 Thread Kyle Sluder
On Mon, Apr 13, 2009 at 4:30 PM, Frederik Slijkerman wrote: > Currently I'm porting a custom slider control that needs to draw parts > of the its interface, like the slider bar and the knob, in the OS style. > The code that I currently have draws this to a temporary bitmap to avoid > flicker on Wi

NSSliderCell, lockFocus question

2009-04-13 Thread Frederik Slijkerman
Hi all, This is my first question here. I'm trying to port a cross-platform app to OS X using Cocoa. I've already got good results so far, but sometimes it's difficult to find out how things are supposed to work. Currently I'm porting a custom slider control that needs to draw parts of the its i