• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: One Shot Windows: WARNING
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One Shot Windows: WARNING


  • Subject: Re: One Shot Windows: WARNING
  • From: Seth Willits <email@hidden>
  • Date: Sat, 7 Feb 2009 21:06:20 -0800

On Feb 7, 2009, at 8:45 PM, Matt Neuburg wrote:

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?

Absolutely. 100% reproducible in a bare bones app. I should have posted this in the first message:


http://www.sethwillits.com/temp/OneShotDocTest.zip

As is, launch the app, close the window using Cmd-W and it will crash. (Clicking on the close widget works fine.)
Go into the nib and change One Shot to YES and it will not not crash.



-- Seth Willits



_______________________________________________

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


References: 
 >Re: One Shot Windows: WARNING (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Cocoa Event Monitor?
  • Next by Date: Re: subpixel rendering vs. layer backed views
  • Previous by thread: Re: One Shot Windows: WARNING
  • Next by thread: Re: One Shot Windows: WARNING
  • Index(es):
    • Date
    • Thread