This is kind of a class Addition so the NS prefix should be okay.


Am 06.04.2008 um 20:43 schrieb Mike Abdullah:
I would very strongly recommend using your own class prefix, not NS or CG. If Apple ever does choose to include such a class/structure in a future release of OS X your current code would be screwed.

On 6 Apr 2008, at 19:22, Stefan Hafeneger wrote:

Hi,

I made a NSVector struct inclusive the typical methods. I adopted the style of the existing NSPoint, NSSize and NSRect structs and also made a CGVector struct. It would be nice if someone could have a look on that code and perhaps improve it. Everybody may use that code for own projects. I made it as a NSGeometry Addition, so I think the best way is to include the header file in the _Prefix.pch so the new types are available everywhere.

With best wishes, Stefan

PS: I know there is a CIVector class but this class is read only.
<NSVector.zip>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net

This email sent to [EMAIL PROTECTED]


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to