• 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: Drawer examples?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawer examples?


  • Subject: Re: Drawer examples?
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 20 Jul 2008 16:02:32 -0700


On 19 Jul '08, at 1:53 PM, Ashley Perrien wrote:

am having no luck with getting the custom view within the drawer to redraw except by closing and reopening it. I throw setNeedsDisplay: YES at it from everywhere I can think of and it just won't redraw.

Usually when something like this happens, the outlet that points to the view didn't get wired up, and so its value is nil. (Messages to nil are no-ops.) Try adding an assertion before the call, like
NSAssert(_customView!=nil,@"Outlet isn't wired up");
[_customView setNeedsDisplay: YES];


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Drawer examples? (From: Ashley Perrien <email@hidden>)

  • Prev by Date: Re: How to get cursor text from a Mac window
  • Next by Date: Re: Redrawing CALayer subclass when super layer is scaled
  • Previous by thread: Re: Drawer examples?
  • Next by thread: Outline View not retaining objects it uses. Why?
  • Index(es):
    • Date
    • Thread