Solution: I used the NSNotification class to send a note to the calling class 
to remove the source view.
                 It works: I can pop out of the subView now.

Ric.


On 03/01/2009 12:10 fc...@dialup4less.com wrote ..
> I have a mental block, here... a bit lost:
>  
> I've finished doing stuff within a subView that I generated and wish to exit &
> dealloc (pop) to the
> previous view (where I was).
>  
>  
> Here's where I've started, created the subView, did work within the SubView 
> and
> now which to exit:
>  
> - (void)glyphIconButtonAction:(UIButton *)sender {
>    
>     @try {
>         sender.hidden = TRUE;   // Hide the original icon to make it look it's
> in transit.
>  
>         // Create the Glyph Animation Container, passing in the glyph button 
> (sender)
> that needs to be animated.
>         CGRect windowRect = [[UIScreen mainScreen] applicationFrame];
>         glyphAnimationContainerView = [[GlyphAnimationContainerView alloc] 
> initWithFrame:windowRect
> :sender];
>        
>         glyphAnimationContainerView.theGlyphButtonSource = sender;
>        
>         [scrollView.window addSubview:glyphAnimationContainerView];  <-- 
> JUMPED
> INTO THIS SUBVIEW; NOW WANT OUT.
>        
>     } @catch (NSException *e) {
>         NSLog(@"*** EXCEPTION *** {GlyphTemplate+GlyphAction} 
> glyphiconbuttonaction...@\n-----\n",e);
>     }
>       
> } // end glyphIconButtonAction().
> Here's my environment:
> (gdb) po [self superview]
> <UIWindow: 0x1024b80>
>  
> (gdb) po [[self superview] subviews]
> <NSCFArray 0x1027d10>(
> <MainMenuView: 0x1027020>,
> <UIImageView: 0x104a1f0>,
> <GlyphAnimationContainerView: 0x10518d0>   <----- I'm here.
> )
> The GlyphAnimationContainerView needs to be purged and the original 
> environment
> restored.
> >From within GlyphAnimationContainerView, how to I pop out and purge this 
> >view?
> 
> Ric
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to