Re: [Pyobjc-dev] Displaying HTML in NSTextView
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-07-04 09:24:15
|
On Friday, Jul 4, 2003, at 11:10 Europe/Amsterdam, Dinu Gherman wrote: > Ronald Oussoren: > >> The signature is: (NSData, NSURL) -> (self, attributes), the >> documentAttributes is an output argument. > > I found this out by experimenting myself... It raises maybe an inter- > esting issue: what if an argument is used as input *and* output ar- > gument? Is there a general policy being followed behind returning > compound results, or is this a case-by-case decission? There is a general rule: - If a pointer is an input argument you should pass a value - If a pointer is an output argument you shouldn't pass a value and the value is added to the return value (which get's turned into a tuple like this: (method_return, output1, output2, ...) - If a pointer is both an input and an output: pass a value for input, the output is returned as with output-only arguments. Ronald |