• 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: Newbie Question: Controls not redrawing on changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Question: Controls not redrawing on changes


  • Subject: Re: Newbie Question: Controls not redrawing on changes
  • From: "Kyle Sluder" <email@hidden>
  • Date: Sat, 3 May 2008 23:47:43 -0400

On Sat, May 3, 2008 at 7:08 PM, Christopher Kempke
<email@hidden> wrote:
> Thanks for the tip, but no go.  It actually makes the behavior worse: now
> the modal dialog is still drawn, but never becomes active (the title bar
> never gets dark, and the previously visible (document) window never
> deactivates, although the dialog is drawn on top), and the default button
> doesn't even turn blue.

Take a look at -[NSPanel setWorksWhenModal:].  You should be using an
NSPanel, not an NSWindow, and must send it this message before doing
-[NSApplication runModalForWindow:].  Read this document, entitled
"How Modal Windows Work," for more information.
http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/UsingModalWindows.html#//apple_ref/doc/uid/20000223

--Kyle Sluder
_______________________________________________

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: Newbie Question: Controls not redrawing on changes
      • From: Christopher Kempke <email@hidden>
References: 
 >Newbie Question: Controls not redrawing on changes (From: Christopher Kempke <email@hidden>)
 >Re: Newbie Question: Controls not redrawing on changes (From: Nathan Kinsinger <email@hidden>)
 >Re: Newbie Question: Controls not redrawing on changes (From: Christopher Kempke <email@hidden>)

  • Prev by Date: Re: Event loop in a secondary thread? Nibless Cocoa?
  • Next by Date: Working with svg
  • Previous by thread: Re: Newbie Question: Controls not redrawing on changes
  • Next by thread: Re: Newbie Question: Controls not redrawing on changes
  • Index(es):
    • Date
    • Thread