• 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: 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

  • Follow-Ups:
    • Re: One Shot Windows: WARNING
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Running out of memory when adding CGImageRef-to-NSImage frames to QTMovie in NSOperation subclass
  • Next by Date: Re: Cocoa Event Monitor?
  • Previous by thread: One Shot Windows: WARNING
  • Next by thread: Re: One Shot Windows: WARNING
  • Index(es):
    • Date
    • Thread