On 11 Dec 2011, at 1:53 PM, Ken Thomases wrote:

>> NSAtrributedString *   attrString = [NSAttributedString string];
>> 
>> is not merely useful, but legal without a downcast.
> 
> And, indeed, you did not make it self-consistent.  The above code snippet is 
> neither useful nor legal. NSAttributedString is not a subclass of NSString 
> and has no +string class method.  For the -string instance method it does 
> have, it would not be safe to assign it to a pointer to NSAttributedString, 
> because it's not an NSAttributedString.

Mistake. I meant NSMutableString.

        — F

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to