• 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
Calling you...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling you...


  • Subject: Calling you...
  • From: Riccardo Santato <email@hidden>
  • Date: Sat, 26 Jan 2002 12:52:28 +0100

Hi everybody.

It's quite difficult to explain the problem I've got... let's try !
I've got two windows (let's call them "main_window" and "second_window")
and two classes (let's call them "first_class" and "second_class") in a
same .nib file. My goal is this:

pressing a button in the "first_window" will open "second_window"
I've tried this way: in the "first_class" I write

- (void) buttonAction:(id)sender+
{
Second_Class *mw;
mw=[[Second_Class alloc] init];
[mw openWindow];
}

while in the "second_class":

-(void)openWindow
{
[second_window makeKeyAndOrderFront:self];
[NSApp runModalForWindow:second_window];
}

I would add these: the outlets are rightly set, the "runModalForWindow"
tells me that "Modal session requires modal window" and the
"second_window" is not displayed. Why ? I've checked Gunnar source code
but it does the very same things as me.. Where's my error ?
Please excuse my poor programming technique.

--
Riccardo Santato
www.riccardosantato.com


  • Follow-Ups:
    • Re: Calling you...
      • From: Thomas Deniau <email@hidden>
  • Prev by Date: Re: How viable is Cocoa development?
  • Next by Date: Re: Calling you...
  • Previous by thread: Re: background of a range within an NSTextView
  • Next by thread: Re: Calling you...
  • Index(es):
    • Date
    • Thread