- CGRect appframe = [[UIScreen mainScreen] applicationFrame];
- if ( CGRectEqualToRect(appframe, frame) )
+ wxShowEvent eventShow(now->GetId(), true);
+ eventShow.SetEventObject(now);
+
+ now->HandleWindowEvent(eventShow);
+ }
+}
+
+-(void) viewWillDisappear:(BOOL)animated
+{
+ wxWidgetIPhoneImpl* impl = (wxWidgetIPhoneImpl* ) wxWidgetImpl::FindFromWXWidget( [self view] );
+ if( impl )
+ {
+ wxNonOwnedWindow* now = dynamic_cast<wxNonOwnedWindow*> (impl->GetWXPeer());
+ wxNonOwnedWindowIPhoneImpl* nowimpl = dynamic_cast<wxNonOwnedWindowIPhoneImpl*> (now->GetNonOwnedPeer());
+
+ if ( nowimpl->InitialShowEventSent() )