• 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
removeFromSuperview does not work in a Preference Pane?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: removeFromSuperview does not work in a Preference Pane?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: intercepting keydowns
  • Next by Date: Re: MVC view/controller separation question
  • Previous by thread: Solved: Need help with undo for text editing
  • Next by thread: Re: removeFromSuperview does not work in a Preference Pane?
  • Index(es):
    • Date
    • Thread