Re: document window appears very briefly
Re: document window appears very briefly
- Subject: Re: document window appears very briefly
- From: Ryan Homer <email@hidden>
- Date: Tue, 27 Feb 2007 08:49:38 -0500
This happens when something goes out of scope... like theDoc in your
case. You might have to retain and autorelease somewhere prior to
showing the window.
On 27-Feb-07, at 4:26 AM, email@hidden wrote:
Hello all,
I have a subclass of NSDocument and after initializing its
"Model"
part, the "View" part
is initialized by the following two lines :
[NSBundle loadNibNamed:@"Hardy2Document.nib" owner:theDoc];
[theDoc showWindows];
After the second line is executed, the window should appear on-
screen,
right ? Well, it
does appear, but immediately disappears in a flash. What kind of
error in
the code is likely
to produce that sort of behaviour ?
Ewan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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