confused about inheritance
confused about inheritance
- Subject: confused about inheritance
- From: Ivan Kourtev <email@hidden>
- Date: Wed, 29 Mar 2006 15:22:18 -0500
Hi,
NSMutableCharacterSet inherits from NSCharacterSet which has a +
characterSetWithCharactersInString method. Why then does the statement
NSMutableCharacterSet *cs = [NSMutableCharacterSet
characterSetWithCharactersInString:@"#"];
produce an "initialization from distinct Objective-C type" warning?
By the same logic, I would expect
NSMutableString *s = [NSMutableString stringWithString:@"A"];
to generate a warning yet it does not.
What am I missing here?
Thanks,
--
ivan
_______________________________________________
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