On Nov 22, 2008, at 7:58 AM, James Montgomerie wrote:

        if(self.anOutlet && !self.view.superview) {


On Nov 19, 2008, at 12:59 AM, mmalcolm crawford wrote:

You could invoke 'view':

- (void)didReceiveMemoryWarning {
   if ([self.view superview] == nil) {
       // set outlets to nil
   }
   [super didReceiveMemoryWarning];
}

but this has the disadvantages that (a) in some situations it will cause the view to be loaded before it is subsequently unloaded, and (b) it isn't future proof.


mmalc

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to