It seems interesting. If I want to create my own superclass for class
cluster, how can I implement it? Could you show simple example,
please?
--
best regards
Ariel
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
On Oct 14, 2009, at 3:39 AM, Ariel Feinerman wrote:
It seems interesting. If I want to create my own superclass for class
cluster, how can I implement it? Could you show simple example,
please?
Maybe Google knows? http://www.google.com/search?q=class+cluster+example
The first hit is
This might be a dumb question but just out of curiosity I was looking
at NSString.h. The class appears to have no instance variables.
/* NSString.h ... */
@interface NSString : NSObject NSCopying, NSMutableCopying, NSCoding
- (NSUInteger)length;
-
On Tue, Oct 13, 2009 at 2:40 PM, Richard Somers
rsomers.li...@infowest.com wrote:
The same is true for NSArray, NSSet, and other foundation classes. If the
class has no instance variables, what does it do for storage?
On Oct 13, 2009, at 12:40 PM, Richard Somers wrote:
This might be a dumb question but just out of curiosity I was
looking at NSString.h. The class appears to have no instance
variables.
NSString is just an interface to a cluster of classes that implement
the actual functionality, ditto
On 14/10/2009, at 6:40 AM, Richard Somers wrote:
The same is true for NSArray, NSSet, and other foundation classes.
If the class has no instance variables, what does it do for storage?
Apart from the class cluster answer you already got, the public
headers don't need to include any
On Oct 13, 2009, at 4:29 PM, Graham Cox wrote:
Apart from the class cluster answer you already got, the public
headers don't need to include any instance variables even if they
exist in reality.
Only if the class cannot be subclassed.
In the 32-bit runtime, instance variable offsets are
On Oct 13, 2009, at 4:29 PM, Graham Cox wrote:
On 14/10/2009, at 6:40 AM, Richard Somers wrote:
The same is true for NSArray, NSSet, and other foundation classes.
If the class has no instance variables, what does it do for storage?
Apart from the class cluster answer you already got, the
On 14/10/2009, at 10:38 AM, Greg Parker wrote:
On 32-bit Mac, if you strip ivars from the header then other code
cannot subclass that class. The compiler will put subclass and
superclass ivars in the same place, leading to exciting data
corruption bugs.
All system frameworks are honest