> On 30 Nov 2014, at 17:30, Navneet Kumar <navnee...@me.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to