• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: document window appears very briefly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >document window appears very briefly (From: email@hidden)

  • Prev by Date: NSPopUpButton updated after the fact
  • Next by Date: Re: Parsing STDout into an NSDictionary
  • Previous by thread: Re: document window appears very briefly
  • Next by thread: CIContext drawing issue.
  • Index(es):
    • Date
    • Thread