• 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
D2JC: Questions about visibility of EOControllers, etc...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

D2JC: Questions about visibility of EOControllers, etc...


  • Subject: D2JC: Questions about visibility of EOControllers, etc...
  • From: Alexander Lamb <email@hidden>
  • Date: Fri, 04 Apr 2003 11:36:00 +0200

Hello,

I am gradually managing to get my D2JC app running (not easy to understand
everything from the documentation and the classes).

Now, I have an initial login panel which appears correctly.
Then upon successfull login I want to have the default query window to
appear.

So, here is my login method:

public void login()
    {
    if(username.getText().equals("all"))
      {

EOControllerFactory.sharedControllerFactory().queryWithEntityName("DicMedica
ment");
      }
    else
      {
      EODialogs.runErrorDialog("Loginfailed", "Erreur de login!");
      }
    }

1)
It works fine but I have two questions:
if I try to add a:  this.makeInvisible();
The login panel does indeed disapear, but then the query window appears very
briefly and disapears and with it the application quits.

So, is this a problem of the app considering the login panel as the main
window and when it quits it quits the app? If so, where do I change this?
Or, is it a problem of the query window not being 3connected2 to the
hierarchy at the time I remove my login panel (I tried doing the
makeInvisible before or after the call to the query window)?

2)
It is not clear (even reading the documentation) how the various windows
appear and disapear. The is the notion of 3connexion2 and 3visibility2. For
example, why can9t I call :
      aController =
EOControllerFactory.sharedControllerFactory().queryControllerWithEntity("Dic
Medicament");
And then 3make it visible2?

Where should I start to understand all this?

Thanks,

Alex
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Event handling question
  • Next by Date: IB, Cocoa/EO and Dec02 dev-tools... tricky but works
  • Previous by thread: downgrading...
  • Next by thread: What flag do I set to see the SQL statements executed by WebObjects EOF?
  • Index(es):
    • Date
    • Thread