Re: Main window disappears. Sometimes.
Re: Main window disappears. Sometimes.
- Subject: Re: Main window disappears. Sometimes.
- From: Graham Cox <email@hidden>
- Date: Mon, 2 Jun 2008 21:11:10 +1000
What settings have you applied to your window in Interface Builder?
generator=[[[Generator alloc]init] retain];
unrelated to your immediate problem, but in a non-GC application, this
would be retaining twice - probably not what you intended. This
suggests your understanding of memory management might be a bit shaky,
so a general review might help.
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html
hth,
G.
On 2 Jun 2008, at 5:58 pm, Francis Perea wrote:
Hi all, this is my first post to the list so I'll present myself.
My name is Francis Perea and I've been a programmer for a long time
(C, Pascal, PHP, Visual Basic) but I'm totally new to Mac
Development and I'm doing my bests to finish my first little Mac OS
X application with Objective-C and Cocoa.
By the momment all goes nice except a little trouble that is driving
me crazy.
The main window of the application shows sometimes, that is the
window appears but instantly it disappears.
One each of every four or five times I run the application, the
window remains open and the application runs perfectly, but that's
only when the window wants to remain.
When the main window disappears the application remain open and I
can even call the about window but I can't recover the main one.
The code has two classes one for the model (generator) and another
for the controller (generatorcontroller).
I've made lots of changes trying to discover why, but no results. I
suppose I has to be something with the init method of the model, but
I'm unable to determine it.
Garbage Collection is on in Xcode.
Any light in my way, plis?
Here it is the code in case anyone can help me.
Thanks in advance,
Francis Perea
_______________________________________________
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