Re: wits end with nsview and nsrectfill()

2014-12-13 Thread Graham Cox
> On 14 Dec 2014, at 2:20 am, Navneet Kumar wrote: > > So if you take a view-based outline view (or maybe table view as well) and > fill a table column’s view’s background with NSRectFill() or any other and > add as sub view a transparent text field, upon refresh the text field and the > rest

Re: wits end with nsview and nsrectfill()

2014-12-13 Thread Bill Cheeseman
> On Dec 13, 2014, at 3:08 PM, Uli Kusterer > wrote: > >> I believe the "Source List" setting means that an NSVisualEffectView lies >> behind the text field. The only documentation I have been able to find about >> NSVisualEffectView is (1) in the AppKit release note for Yosemite (which >>

Re: wits end with nsview and nsrectfill()

2014-12-13 Thread Uli Kusterer
On 13 Dec 2014, at 16:45, Bill Cheeseman wrote: >> On Dec 13, 2014, at 10:20 AM, Navneet Kumar wrote: >> >> So if you take a view-based outline view (or maybe table view as well) and >> fill a table column’s view’s background with NSRectFill() or any other and >> add as sub view a transparent

Re: wits end with nsview and nsrectfill()

2014-12-13 Thread Bill Cheeseman
> On Dec 13, 2014, at 10:20 AM, Navneet Kumar wrote: > > So if you take a view-based outline view (or maybe table view as well) and > fill a table column’s view’s background with NSRectFill() or any other and > add as sub view a transparent text field, upon refresh the text field and the > re

Re: wits end with nsview and nsrectfill()

2014-12-13 Thread Navneet Kumar
Hi After trying out everything, I finally found how to remove that difference in background color. I couldn’t find any rationale in this patch effect, so I turned the outline selection highlight to none (regular, i.e. plain white also works). So if you take a view-based outline view (or maybe ta

Re: wits end with nsview and nsrectfill()

2014-12-05 Thread Uli Kusterer
> On 05 Dec 2014, at 13:30, Uli Kusterer wrote: > > On 30 Nov 2014, at 18:30, Navneet Kumar wrote: >> I have a custom view in which I am setting the background using NSRectFill() > > What is the current compositing mode set on the current graphics context? > Have you tried using NSRectFillUsi

Re: wits end with nsview and nsrectfill()

2014-12-05 Thread Uli Kusterer
On 30 Nov 2014, at 18:30, Navneet Kumar wrote: > I have a custom view in which I am setting the background using NSRectFill() What is the current compositing mode set on the current graphics context? Have you tried using NSRectFillUsingOperation() and passing NSCompositeCopy to make sure you d

Re: wits end with nsview and nsrectfill()

2014-12-04 Thread Graham Cox
> On 5 Dec 2014, at 1:43 am, Navneet Kumar wrote: > > 1. If a view is send the msg -display, is the msg sent to all its subviews > without exception? > 2. Could it be that so many views when trying to display (in the main thread > of course), could block some views from refreshing altogether?

Re: wits end with nsview and nsrectfill()

2014-12-04 Thread Navneet Kumar
Hi, The problem is not there if I create a new project and add a text field as subview to a custom view with a background color. There is no difference in color in text field and rest of the area. And also this wasn’t there a couple of months ago, and not using git or subversion, I am not able

Re: wits end with nsview and nsrectfill()

2014-11-30 Thread Navneet Kumar
Thanks for the responses. The problem is still there. I don’t need to dynamically add or remove views and was following the wrong way to setup view hierarchy in drawRect:. I have changed it to the following order: initWithFrame: then -(void)setupSubViews in all related classes. So in app deleg

Re: wits end with nsview and nsrectfill()

2014-11-30 Thread Kyle Sluder
On Nov 30, 2014, at 9:30 AM, Navneet Kumar wrote: > > Hi, > > I have a custom view in which I am setting the background using NSRectFill() > in drawRect:. You’re aware that this function is only really suitable for drawing opaque colors, yes? If you NSRectFill() with a transparent color, it w

Re: wits end with nsview and nsrectfill()

2014-11-30 Thread Navneet Kumar
Thank you Steve and Mike. I'll try it tomorrow and post the result here. Wishes, Navneet Sent from my iPhone > On 30-Nov-2014, at 11:13 pm, Steve Christensen wrote: > > Why aren't you creating the subview in -initWithFrame: or in a > nib/storyboard? The purpose of -drawRect: is solely to [re-]

Re: wits end with nsview and nsrectfill()

2014-11-30 Thread Steve Christensen
Why aren't you creating the subview in -initWithFrame: or in a nib/storyboard? The purpose of -drawRect: is solely to [re-]draw the contents of one view, not build a view hierarchy. I expect that modifying the view hierarchy while in the middle of a drawing cycle is leaving views in an inconsist

Re: wits end with nsview and nsrectfill()

2014-11-30 Thread Mike Abdullah
> On 30 Nov 2014, at 17:30, Navneet Kumar wrote: > > Hi, > > I have a custom view in which I am setting the background using NSRectFill() > in drawRect:. I am also adding a text field as subview in this method. I suspect there-in you have your problem. -drawRect: is for drawing. Do not modif