Skip navigation.
 
mlremoveFromSuperview does not work in a Preference Pane?
FROM : Dave Camp
DATE : Mon Apr 04 18:27:32 2005

I'm working on a System Preferences pane that has a basic and advanced
mode, similar to the Energy Saver pane. I've got a view that I want to
remove in my basic mode, but for some reason removeFromSuperview is not
working. My code looks like:

[tableView retain];
[tableView removeFromSuperview];

I've done this in applications and it works fine. When I do this in my
pref pane the table view appears to erase to white (the interior and
column headers disappear), but the other views that I widen to take up
the space draw "under" this blank frame. It's like the
removeFromSuperview removed the view from a list of things to draw, but
not the list of things to clip against or something.

Also, if I omit the retain, System Preferences crashes on the next
window update. This again suggests that something is holding on to the
view.

Any thoughts?

Dave

---
There's an old proverb that says just about whatever you want it to.

Related mailsAuthorDate
mlremoveFromSuperview does not work in a Preference Pane? Dave Camp Apr 4, 18:27
mlRe: removeFromSuperview does not work in a Preference Pane? Finlay Dobbie Apr 5, 03:56
mlRe: removeFromSuperview does not work in a Preference Pane? Dave Camp Apr 5, 17:50