Re: Drawer examples?
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