Re: OK, but what do 'attributes' look like?
Re: OK, but what do 'attributes' look like?
- Subject: Re: OK, but what do 'attributes' look like?
- From: Scott Anguish <email@hidden>
- Date: Tue, 9 Mar 2004 14:10:03 -0500
Look at the constants table in the NSAttributed Strings additions here
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSAttributedString.html#//
apple_ref/doc/uid/20000167
Yes, been there.
specifically, the middle column tells you the object type
And..... what does that tell me....? Type of which object? I'm
working on setting attributes for an NSString, but the only line that
mentions NSString in the middle column is something about tool tips.
Nearly there, but I'm back to the same situation. The documentation
is clear and obvious, if you know the answer,
Well, I think this is documented better in that respect here,
http://developer.apple.com/documentation/Cocoa/Conceptual/
AttributedStrings/index.html#//apple_ref/doc/uid/10000036i,
specifically in accessing attributes.
The Reference that I pointed you to is just that, reference. It's
usually more terse, since the conceptual information explains things
better.
Also, the Constants Description in NSAttributedString seems to state
it pretty clearly
An attributed string identifies attributes by name, storing a value
under the name in an NSDictionary. You can assign any attribute
name/value pair you wish to a range of characters, in addition to the
standard attributes described in the Constants section of
NSAttributedString Additions.
I think adding a fragment of code to the creating attributes topic
couldn't hurt through, and I've filed a bug.
I guess one of the problems with being self-taught (OK, you can blame
the teacher) is I don't recognise the formal definitions and standard
terms so easily. I saw a column on that page that I had found, and
you each referred me to, headed "Value Class", but I did not
appreciate that the cryptic heading meant "The object that you add to
the attribute dictionary must be of the type listed below".
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.