Re: Inviting to comment on Cocoa categories
Re: Inviting to comment on Cocoa categories
- Subject: Re: Inviting to comment on Cocoa categories
- From: Bill Bumgarner <email@hidden>
- Date: Sun, 09 Nov 2008 16:38:22 -0800
On Nov 9, 2008, at 3:07 PM, Graham Cox wrote:
+(NSAffineTransform *) transformRotatedAroundPoint:(NSPoint) p
degrees:(CGFloat) deg;
A handy method, but I wonder if it could be named to be more
readable with respect to its actual function, for example:
+ transformWithPoint:rotatedByDegrees:
I would highly recommend that you prefix your category methods with
some kind of a unique identifier.
I.e.
TN_transformWithPoint:rotatedByDegrees:
Objective-C does not have namespaces, not for classes and not for
methods.
Much confusion and lost time has been caused by a software update
adding a method that a developer already has in a category somewhere....
b.bum
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden