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

This email sent to [EMAIL PROTECTED]

Reply via email to