Bugs item #958093, was opened at 2004-05-21 11:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=958093&group_id=14534
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Bob Ippolito (etrepum)
Assigned to: Nobody/Anonymous (nobody)
Summary: pointer support interferes with initialization
Initial Comment:
It seems that out and in-out methods interfere with initialization
(both new and old initializer pattern), which seems to make it
impossible to create a working NSAttributedString.
ObjC version:
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
int main(int argc, char **argv) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog(@"attributed string = %@", [[[NSAttributedString alloc]
initWithPath:@"Introduction.rtf" documentAttributes:NULL]
autorelease]);
[pool release];
return 0;
}
PyObjC equiv:
from AppKit import *
from Foundation import *
txt, attrib =
NSAttributedString.alloc().initWithPath_documentAttributes_(u'Intro
duction.rtf')
NSLog(u"attributed string = %s" % (txt,))
the output of the PyObjC version looks like:
<NSConcreteAttributedString objective-c instance 0x0>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=114534&aid=958093&group_id=14534
|