Re: Questions about gnome-objc?
- From: Florian Hars <fm5a014 math uni-hamburg de>
- To: gnome-list gnome org
- Subject: Re: Questions about gnome-objc?
- Date: Thu, 14 May 1998 08:00:18 +0200 (DFT)
On Wed, 13 May 1998, Dirk Luetjens wrote:
> I not sure, but I think the main advantage of Objective C is when using an
> Interface Builder where you can instantiate and connect objects on the
> fly.
The main advantage of ObjC and the NextStep classes when using an
interface builder is that the classes can serialize themselves: You just
build the widget hierarchy for your App and connect events to actions with
the IB, the IB sends the toplevel wigdet an encodeWithCoder: somecoder (or
something similar) and dumps the resulting text string to a file.
If the widgets are sufficiently powerfull your *whole* application code
then may look something like
#include <the usual stuff>
main () {
Application myapp;
myapp = [Application new];
[myapp initFromFile: "filename" withCoder: somecoder];
[myapp run];
}
(Its a long time since I last looked at ObjC, so I'm not sure about the
exact syntax and method names and things, but it is something similar).
If I remember correctly, serialization is another important thing gtk+
lacks.
Yours, Florian.
--
#!/bin/sh -
set - `type $0` 'tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]"';while [ \
"$2" != "" ];do shift;done;echo 'frq -a -rc '`echo "$0"| $1 `'>$UBZR/.`rpub \
signature|'`echo $1|$1`'`;rpub "Jr ner fvtangher bs Obet."'|$1|sh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]