0
で "設定" を使用、私が持っている:だから明らかに私のクラスでは、カカオメソッド名
@property (atomic, retain) NSPredicate* predicate;
setPredicate:somePredicate作品を。
私は次のようになり、クラスのメソッドをしたい:
-(void)setPredicateWithDate:(NSDate *)date
{
NSPredicate* predicate = (build a predicate with the NSDate)
[self setPredicate:predicate];
}
これは私がpredicateWithDateと呼ばれるプロパティを持っていないので、Cocoaの命名規則と矛盾しているようです。人々は通常、これらの方法の名前を何ですか?
思考:
私は "applyPredicateWithDate" を考えていましたか?
NSViewには、 'setFrameOrigin:'と 'setNeedsDisplayInRect:'のようなメソッドがあります。 – Willeke