Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Display command kills pref pane

Display command kills pref pane
Thread Tools
Posting Junkie
Join Date: May 2001
Location: Portland, OR
Status: Offline
Reply With Quote
Mar 14, 2002, 10:55 AM
 
Hello.

I'm trying to manually refresh my pref pane by telling my window to display. Heres what I do. Window is a outlet to my window:

[window display];

It will kill sys prefs with a unexpected quit.
8 Core 2.8 ghz Mac Pro/GF8800/2 23" Cinema Displays, 3.06 ghz Macbook Pro
Once you wanted revolution, now you're the institution, how's it feel to be the man?
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Mar 15, 2002, 02:53 PM
 
Remember that your pref pane view is taken out of the window it's in when the nib is loaded, and put into another window (the preferences window). In all likelihood the original window was freed, and your outlet is pointing to a freed object.

Try calling [[myView window] display]. That will call the window that your view is currently in.

I take it just calling [myView setNeedsDisplay:YES] doesn't do it for you? And if not, calling -display on your view and then -flushWindow on the window doesn't work? I'd try both of those before calling -display on the window itself... that's a bit of overkill.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:19 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2