Re: One Shot Windows: WARNING
Re: One Shot Windows: WARNING
- Subject: Re: One Shot Windows: WARNING
- From: Matt Neuburg <email@hidden>
- Date: Sat, 07 Feb 2009 20:45:21 -0800
- Thread-topic: One Shot Windows: WARNING
On Sat, 7 Feb 2009 17:32:58 -0800, Seth Willits <email@hidden> said:
>BAD! BAD! BAD! BAD!
>In my case, I have a document window with a table view in it, where
>data source and delegate are the window controller. If the window is
>oneShot NO, then the window controller is deallocated, but the views
>in the window are still alive, and it tries to draw those views,
>sending table view data source methods to the deallocated window
>controller.
>KABOOM.
Are you sure you're barking up the right tree? oneShot is all about what
happens when the window is HIDDEN (orderOut). If the window is properly
CLOSED, it's gone; it doesn't matter what the oneShot settings are.
If there's a wrong setting in your story, it sounds more like it might be
releasedWhenClosed. But it sounds if the problem is in the relationship
between your window and your window controller. Hard to say from this
distance. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden