Add rules in cocoa category