Bob Ippolito wrote: > On Jan 10, 2006, at 2:16 PM, Michael Glassford wrote: > > >>When trying to initialize an NSAttributedString like this: >> >>attributedString = >>AppKit.NSAttributedString.alloc >>().initWithHTML_baseURL_documentAttributes_(data, >>url, None) >> >>I get the error "TypeError: Need 2 arguments, got 3", although the >>documentation makes it pretty clear that there are in fact 3 >>arguments. >>Similarly, >> >>attributedString = >>AppKit.NSAttributedString.alloc().initWithHTML_documentAttributes_ >>(data, >>url) >> >>gives the error "TypeError: Need 1 arguments, got 2", although the >>documentation makes it pretty clear that there are in fact 2 >>arguments. > > > The reason is because the last parameter is an output parameter. > It's part of the result.
That's the thing I hadn't noticed. Thanks for pointing it out--I've got it working now. Mike _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig