Re: wits end with nsview and nsrectfill()
Re: wits end with nsview and nsrectfill()
- Subject: Re: wits end with nsview and nsrectfill()
- From: Mike Abdullah <email@hidden>
- Date: Sun, 30 Nov 2014 17:38:47 +0000
> On 30 Nov 2014, at 17:30, Navneet Kumar <email@hidden> 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 modify the view hierarchy from within it.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden