[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: Appreciation of .gmodel format (was deprecation)

From: Gregory John Casamento
Subject: Re: RFC: Appreciation of .gmodel format (was deprecation)
Date: Tue, 6 Jan 2004 17:00:39 -0800 (PST)

--- Kazunobu Kuriyama <address@hidden> wrote:
> Alexander Malmberg wrote:
> >Stefan Urbanek wrote:
> >[snip]
> >
> >>>I believe what Georg Fleischmann wants isn't just a text format, it's a
> >>>structured, human readable text format.
> >>>
> >>What about NSKeyedArchiver and NSKeyedUnarchiver?
> >>
> >
> >It looks like they would produce something fairly human-readable (or at
> >least a lot better than the above example :). OTOH, implementing those
> >classes is a bit of work, and to get the benefits, you'd have to update
> >all -encodeWithCoder:/-initWithCoder: implementations, which is a lot of
> >work.
> >
> Because I can't exactly make out what you mean, let me ask a question.
> If the assertion above is true, -encodeWithCoder:/-initWithCoder: which
> were written for a class designed to be used with 10.1 or before must be
> rewritten for use with 10.2 or later.  Is this true?

No. Your argument is predicated on the assumption that 10.2 uses
NSKeyedArchiver to encode nib objects, which is false.   10.2 continues to use
NSArchiver to save and load .nib file objects.

> If not, ...  It seems to me that implementing NSKeyedArchiver/
> NSKeyedUnarchiver requires much of work so that the existing encode/
> decode methods will remain the same; however, if it's done, we can get
> the benefits fairly easily.  Is it impossible to implement them using
> either proxy or cluster pattern to achieve the purpose, keeping the
> existing code untouched?

The existing encode/initWithCoder methods *will* need to change.  The interface
to NSKeyedArchiver is different from NSArchiver.

> - Kazunobu Kuriyama


Gregory John Casamento -- CEO/President Open Logic Corp.
-- bheron on #gnustep, #linuxstep, & #gormtalk ---------------- 
Please sign the petition against software patents at: 
-- Main Developer of Gorm (featured in April Linux Journal) ---

Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

reply via email to

[Prev in Thread] Current Thread [Next in Thread]