Article View: comp.sys.next.programmer
Article #143Trouble creating 3.0 applications
From: Eskandar Ensafi
Date: Wed, 04 Nov 1992 18:27
Date: Wed, 04 Nov 1992 18:27
39 lines
2196 bytes
2196 bytes
Hi,
I converted some of my 2.1 apps to 3.0 and everything recompiled without
problems. However, when I tried to create a new app under 3.0, it didn't work!
This is what I did in a desperate attempt to create an app that would run
(NOTE: the following worked under 2.1 buit failed under 3.0):
1) In IB, I made a new application and added a TextField to the window.
2) I made the app a sublass of Application (MyApplication).
3) I created an outlet called myText in MyApplication.
4) I connected myText to the TextField in my window.
5) I unparsed the .[hm] files and used Edit to modify them as follows:
a) Added method - appDidInit:sender to "MyApplication.h"
b) I added #import <appkit/TextField.h> to "MyApplication.m" and also
wrote the following code for the above method:
- appDidInit:sender /* I also tried appDidInit:app */
{
[myText setStringValue:"This is a test."];
/* I tried this code with and without [myText display] */
return self;
}
6) I used PB to make this into a project and compiled it.
7) I discovered that 3.0 breaks all connections when you make a subclass, so I
had to reconnect "Quit" and "Hide" to - terminate: and - hide: (obviously,
nither button worked when my app was compiled).
8) My text field did NOT display "This is a test." -- the appDidInit method is
not invoked for some reason.
Please help me figure out this problem and why I did not have the same problems
under 2.1 (e-mail preferred).
Thank You!
- Eskandar Ensafi, esky@marathon.cs.ucla.edu
Technical Details
Message-ID:
<1992Nov4.182700.18323@cs.ucla.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!hp-cv!sdd.hp.com!usc!elroy.jpl.nasa.gov!ucla-cs!usenetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!hp-cv!sdd.hp.com!usc!elroy.jpl.nasa.gov!ucla-cs!usenet From: esky@marathon.cs.ucla.edu (Eskandar Ensafi) Newsgroups: comp.sys.next.programmer Subject: Trouble creating 3.0 applications Keywords: trouble, application, 3.0, ib, pb, interface, interfacebuilder, builder, project, projectbuilder Message-ID: <1992Nov4.182700.18323@cs.ucla.edu> Date: 4 Nov 92 18:27:00 GMT Article-I.D.: cs.1992Nov4.182700.18323 Sender: usenet@cs.ucla.edu (Mr Usenet) Reply-To: esky@marathon.cs.ucla.edu Organization: UCLA, Computer Science Department Lines: 39 Nntp-Posting-Host: marathon.cs.ucla.edu