Re: looks like Intel vs. PowerPC difference
Re: looks like Intel vs. PowerPC difference
- Subject: Re: looks like Intel vs. PowerPC difference
- From: Matt Neuburg <email@hidden>
- Date: Thu, 03 Aug 2006 15:44:31 -0700
- Thread-topic: looks like Intel vs. PowerPC difference
On or about 8/3/06 3:05 PM, thus spake "Bill Bumgarner" <email@hidden>:
> On Aug 3, 2006, at 2:52 PM, Jakob Olesen wrote:
>> On 03/08/2006, at 22.49, Bill Bumgarner wrote:
>>>
>>> The NSXMLDocument class is free to do whatever it wants to err,
>>> including setting it to a completely bogus state, if the xmlDoc
>>> was correctly parsed and produced. It might be that the xmlDoc
>>> sets the reference pointed to by &err to an allocated instance of
>>> NSError that is -release'd upon successful completion, but the
>>> reference is not "cleared" because there is no reason to do so.
>>
>> In fact, NSXMLDocument does something like this. If it generates /
>> warnings/ during the parse, err points to an NSError with the
>> warnings, but it still returns a valid document.
>
> That is inconsistent on the part of NSXMLDocument. I believe there is
> a bug tracking that.
So, if I can't trust NSXMLDocument's init to generate nil when there *is* an
error (and experience tells me that I can't), and I can't trust the NSError
to be left alone if there *isn't* an error (experience tells me I can, but
you claim I cannot), how can I write any code at all? m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
http://www.amazon.com/gp/product/0596102119
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden