>Check to make sure [window isFlushWindowDisabled] is NO and [window 
isAutodisplay] is YES.

Yes, both OK.

> Also, try dropping a standard control (e.g. a button) in and see if it 
redraws to the pressed state when you press it.

When I do this programmatically after creating the main window's NSView, it 
scarfs up the bounding box of the succeeding views, not sure why that is.

NSButton *xtra = [[NSButton alloc] initWithFrame:NSMakeRect(0,0,100,20)];
[nuvu addSubview:xtra];

> Try [NSWindow flushWindow] or flushWindowIfNeeded.

Had no effect. I think the window is already being flushed--- drawRect is being 
called

>Also note, from the NSView docs:
> "A view object can draw on-screen if it is not hidden, it is attached 
to a view hierarchy in a window (NSWindow), and the window has a 
corresponding window device. "

All 3 are confirmed OK (including isHiddenOrHasHiddenAncestor)

Still puzzled, but good set of questions.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________

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