• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Inviting to comment on Cocoa categories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Inviting to comment on Cocoa categories (From: Tommy Nordgren <email@hidden>)
 >Re: Inviting to comment on Cocoa categories (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Signature Recognition in Cocoa
  • Next by Date: Subject: Re: Core Data entity fetching by date
  • Previous by thread: Re: Inviting to comment on Cocoa categories
  • Next by thread: Re: Inviting to comment on Cocoa categories
  • Index(es):
    • Date
    • Thread