• 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: releasing an NSPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: releasing an NSPanel


  • Subject: Re: releasing an NSPanel
  • From: Michael Watson <email@hidden>
  • Date: Thu, 23 Aug 2007 02:29:36 -0400

Why not simply redraw the dirty portions of your control(s)/window?


-- m-s

On 23 Aug, 2007, at 01:32, Donald Hall wrote:

I Have an NSPanel that I want to release after it is closed so that a fresh copy will be loaded the next time I want to open it. The docs suggest sending the panel an autorelease message in windowShouldClose, but when I do this the next time I want to open the panel the program crashes, presumably because it is trying to unhide a released object. How do I get the program to get a fresh copy from the nib?

The reason I want to do this is because I have one element in the panel that can change in size depending on a preference. When the preference is changed, the next time I "open" the panel there are drawing artifacts as the element redraws over only part of itself when the panel is shown.

Thanks for any advice,

Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________

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:
40bungie.org


This email sent to email@hidden

_______________________________________________

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: 
 >releasing an NSPanel (From: Donald Hall <email@hidden>)

  • Prev by Date: releasing an NSPanel
  • Next by Date: Re: subpathsAtPath and memory usage
  • Previous by thread: releasing an NSPanel
  • Next by thread: Getting the current line
  • Index(es):
    • Date
    • Thread