releasing an NSPanel
releasing an NSPanel
- Subject: releasing an NSPanel
- From: Donald Hall <email@hidden>
- Date: Wed, 22 Aug 2007 23:32:09 -0600
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:
This email sent to email@hidden