Re: adding new class in IB to localized app=connection trouble
Re: adding new class in IB to localized app=connection trouble
- Subject: Re: adding new class in IB to localized app=connection trouble
- From: Lars Sonchocky-Helldorf <email@hidden>
- Date: Wed, 27 Mar 2002 05:05:39 +0100
Just use one nib to develop and create the localized nibs with nibtool
(man nibtool) as last step.
Lars
Am Dienstag den, 26. Mdrz 2002, um 17:43, schrieb Jens Bauer:
Hi all,
I'm having this problem very often, and I just don't remember how I used
to solve it. I also apologize if this has been a subject recently, but
by
searching the Cocoa list I couldn't find any solutions.
I have an application containing support for 3 different languages:
English, Danish and Swedish.
I have one resource called MainMenu.nib in each of the 3 .lproj folders.
They worked well, now, by double-clicking the Danish MainMenu.nib, IB is
launched, and I add a new class by subclassing "NSObject".
OK, so far so good. I don't add any outlets or any actions. I only need
the class to be loaded automatically into my controller.
-So I go instantiate this class, and I get a nice instance of it. I
control-drag it to my controller and click connect.
Now I belive it should work. I save the .h and .m files, add my methods,
and recompile.
Here the problems starts. I don't see my methods getting called at
all. I
don't understand why, so I start debugging.
I've found out that the outlet in my controller, which is connected to
my
new instance is 'nil' !
I've also done something, which might be completely off...
I've clicked the new instance in the resource, clicked "Copy" and opened
up the other resources for the 2 other languages, and pasted them in
here, to make the resources "look and act the same". -Is this really
possible ?
(I mean: if you select a bunch of them, they lose their connection, do
they lose other information)
Love,
Jens
--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.