• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: wits end with nsview and nsrectfill()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >wits end with nsview and nsrectfill() (From: Navneet Kumar <email@hidden>)

  • Prev by Date: wits end with nsview and nsrectfill()
  • Next by Date: Re: wits end with nsview and nsrectfill()
  • Previous by thread: wits end with nsview and nsrectfill()
  • Next by thread: Re: wits end with nsview and nsrectfill()
  • Index(es):
    • Date
    • Thread