removeFromSuperview does not work in a Preference Pane?
removeFromSuperview does not work in a Preference Pane?
- Subject: removeFromSuperview does not work in a Preference Pane?
- From: Dave Camp <email@hidden>
- Date: Mon, 4 Apr 2005 09:27:32 -0700
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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden