Re: Making views disappear and reappear
Re: Making views disappear and reappear
- Subject: Re: Making views disappear and reappear
- From: Carlos Weber <email@hidden>
- Date: Sat, 23 Jun 2001 12:38:50 -1000
On Saturday, June 23, 2001, at 12:23 , Mark T wrote:
Yes, this did work, thank you. The bigger problem, though, was that the
remove... message needs to be sent to the ScrollView, not the
TableView. When I used your code on the ScrollView, it works fine. The
new problem is getting it to reappear. [itsSuperview addSubview:
myScrollview] doesn't seem to do anything, evidenced by the app
crashing (signal 11 - SIGBUS) when i subsequently attempt to remove the
view. Is this what i should be doing?
Oops, forgot about the fact that you actually want to remove a hierarchy
of views. Maybe someone who really knows will chime in (I am a relative
Cocoa beginner too) but you could try moving the scrollview way
offscreen (e.g. [scrollView setFrameOrigin: NSMakePoint(-15000,
-15000)]). The only other thing I can think of would be creating a
separate nib file with a custom view to embed your table view and
manipulating that.