• 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: problem loading a window in a new NIB using NSWindowController.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem loading a window in a new NIB using NSWindowController.


  • Subject: Re: problem loading a window in a new NIB using NSWindowController.
  • From: Dave Hersey <email@hidden>
  • Date: Wed, 3 Oct 2007 20:02:52 -0400

It seems likely that (at least) one of three things is happening. Either your myWindowController is invalid, your [myWindowController window] is invalid, or something is failing during the initialization or waking of your controller nib.

Have you checked the values of myWindowController and [myWindowController window] to see if they look valid?

You mentioned there's a table in the window-- are there any other instantiated objects in the nib that might be failing/crashing?

What does the crash log say?

It's unclear from your message below if MyWindowController is an NSWindowController subclass. If so, have you stepped through the init, awakeFromNib and windowControllerDidLoadNib methods looking for problems?

At what point (in which method of which class) are you executing the code below?

You haven't provided enough information to debug this. If you go through those first steps above, they will probably yield the answer. If not, post the results.

- d

On Oct 3, 2007, at 2:40 PM, deepak gopal wrote:

Hi

I am trying to load a Nib File Using the code below. [myWindowController window] crashes the app.

NSWindowController *myWindowController = [[[MyWindowController alloc] initWithWindowNibName:@"SymbolsView"] autorelease];



  [[myWindowController window] makeKeyAndOrderFront:nil];

SymbolsView is the Nib name in which I have one window which has a tableView. I have made MyWindowController (NSWindowController) which is the file's owner of the NIB, as the delegate for the window and have connected my window to the 'window' outlet in MyWindowController.

Am I missing something here?

Thank you
DG

_______________________________________________

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


References: 
 >problem loading a window in a new NIB using NSWindowController. (From: deepak gopal <email@hidden>)

  • Prev by Date: Re: Title bar on left of Panel
  • Next by Date: Re: fetching from NSArray
  • Previous by thread: Re: problem loading a window in a new NIB using NSWindowController.
  • Next by thread: Re: problem loading a window in a new NIB using NSWindowController.
  • Index(es):
    • Date
    • Thread