Re: Fullscreen code not working
Re: Fullscreen code not working
- Subject: Re: Fullscreen code not working
- From: rfitz <email@hidden>
- Date: Sun, 5 Jun 2005 16:01:58 -0400
Cameron,
I do most of my coding in A.S.S. I am not familiar with the debugger.
Should I change the void to
- (NSWindow *)endFullScreen;
{ [NSMenu setMenuBarVisible:1];
[fsWindow close];
return fsWindow;
}
What do you mean by clanup? I did not write this fullscreen code. It
was on macosxhints.com. So I am unfamiliar with everything that is
happening. Can you show me exactly what needs to be fixed and what I
need to do to fix it. Again, I am not too familiar with Cocoa. I am
know applescript, and unfortunately that is not going to help here.
Thanks,
-Rhon
On 6/5/05, Cameron Hayne <email@hidden> wrote:
> On 5-Jun-05, at 11:40 AM, rfitz wrote:
> > the user clicks the close button this code is executed:
> > set theWindow to (call method "endFullScreen")
> > The fullscreen window closes, but then after about 1 or 2 seconds my
> > program crashes.
>
> Your 'endFullScreen' method is void - so it doesn't return a window.
> Thus the above invocation does not seem good. But if the app is
> crashing, can't you run in the debugger to find out where & why it is
> crashing?
>
> And I note that you need to do some cleanup in endFullScreen as
> otherwise you are leaking memory - e.g. for the allocated 'fsWindow'.
>
> --
> Cameron Hayne
> email@hidden
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden