Re: releasing an NSPanel
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