TOC | PREV | NEXT

Problem: setVersion causes bogus warnings

+ (void)initialize
{
[self setVersion:(int)OS_VERSION]; // 100 is OS version
return;
}


Solution: Instead of using "self", use the class name, such as this Transaction class, and cast it to void:

+ (void)initialize
{
(void)[Transaction setVersion:(int)OS_VERSION]; // 100 is OS version
return;
}



Problem: Your Cell subclasses used to use the "support" ivar to access the font , and cFlags1 to access cell state.

Solution: Use NSCell's -font method instead for support, and use _cFlags insteead of cFlags1 and cFlags2 to access cell state.



TOC | PREV | NEXT
Match: Format:
Search:
Created by Stone Design's Create on 6/2/1997