Re: NSCharacterSet Parsing MS Word 97 files? <Newbie>
Re: NSCharacterSet Parsing MS Word 97 files? <Newbie>
- Subject: Re: NSCharacterSet Parsing MS Word 97 files? <Newbie>
- From: j o a r <email@hidden>
- Date: Wed, 6 Jul 2005 18:48:54 +0200
On 6 jul 2005, at 18.29, Vince Ackerman wrote:
I was hoping to try a little experiment and see if
NSAttributedString would solve my Word Doc parsing problem... but
I'm running into a problem.
I Can't seem to get past a compile warning of
warning: 'NSAttributedString' may not respond to
'+initWithDocFormat:documentAttributes:'
and then a runtime error of
+[NSAttributedString
initWithDocFormat:documentAttributes:]: selector not recognized
Well, it's not a class method, so that is to be expected (See the "+"
before the method name. If that doesn't tell you anything, you should
read the ObjC PDF!)...
By looking at the method name you can guess that this is an init
method, used to configure new instances of a class. The pattern is
something like this:
id myObj = [[MyClass alloc] init];
Where the generic init method can ge replaced with a more specialized
initializer, like the one that we've talked about in this thread. If
this sounds weird, I suggest that you run through a couple of basic
tutorial projects for Cocoa+ObjC - it will probably make things clearer.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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