• 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: Screen not redrawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen not redrawing


  • Subject: Re: Screen not redrawing
  • From: Russ <email@hidden>
  • Date: Fri, 17 Oct 2008 20:50:43 -0700 (PDT)

>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 (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

  • Follow-Ups:
    • Re: Screen not redrawing
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Screen not redrawing
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Objective 2.0 properties
  • Next by Date: Re: Objective 2.0 properties
  • Previous by thread: Re: Screen not redrawing
  • Next by thread: Re: Screen not redrawing
  • Index(es):
    • Date
    • Thread