• 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
Multiple windows : little bit confused
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple windows : little bit confused


  • Subject: Multiple windows : little bit confused
  • From: kubernan <email@hidden>
  • Date: Sat, 4 Aug 2001 12:56:03 +0200

Hello all !

After reading omnigroup de dev. mailing list, i'm still confused with my
app.

I have two window in this application :
- the main window in which double clicking in a row of a table view
opens a new window.
Each window are in seperate .nib files.

The doubleClick method execute this code :

if (![NSBundle loadNibNamed:@"myNibFile" owner:self]) {
NSLog(@"Failed to load Document.nib");
[self release];
}
[window makeKeyAndOrderFront:self];


I don't know if its good but myNibFile appears but...but.. nothing
happens in the .m associated
(NSBeep(); in awaikFromNib doesn't work).
At this time, the corresponding controller in .h file was defined as a
subclass of NSWindowController.
I have buttons on the window but it appears i'm not able to specify the
target in IB defined in the .m file.
The target doesn't appear in IB.

If i defined the controlleras a sublass of NSWindowController in .h
file, the target appears but after double
click for launching the window i have this message : could not connect
MyAction to the Delegate...

I'm looking for simple sample of two windows app. (the Apple example
have two much code).
Or if you have idea on my prb...

Thx for your help


  • Follow-Ups:
    • Re: Multiple windows : little bit confused
      • From: Kyle Mandli <email@hidden>
  • Prev by Date: Re: "help" URLs
  • Next by Date: AW: Beginners question: displaying a window ?
  • Previous by thread: Re: Beginners question: displaying a window ?
  • Next by thread: Re: Multiple windows : little bit confused
  • Index(es):
    • Date
    • Thread