Change direct references to the isa pointer to calls to object_getClass(). In

discussion with Steve Naroff (before he left Apple) it was decided that the isa
pointer should be regarded as an implementation detail and not part of the
language, so direct references to it are deprecated (on OS X).  This gives the
runtime a bit more freedom to do secret isa-swizzling tricks.

I've had these changes sitting in my copy for ages - no idea why they weren't
committed.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33111 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-05-25 11:19:09 +00:00
parent b644b71dd7
commit 00f5e41f60
3 changed files with 7 additions and 7 deletions

View file

@ -572,7 +572,7 @@ typedef struct _PathElement
//
- (NSBezierPath *)bezierPathByFlatteningPath
{
NSBezierPath *path = [isa bezierPath];
NSBezierPath *path = [object_getClass(self) bezierPath];
NSBezierPathElement type;
NSPoint pts[3];
NSPoint coeff[4];
@ -631,7 +631,7 @@ typedef struct _PathElement
- (NSBezierPath *) bezierPathByReversingPath
{
NSBezierPath *path = [isa bezierPath];
NSBezierPath *path = [object_getClass(self) bezierPath];
NSBezierPathElement type, last_type;
NSPoint pts[3];
NSPoint p, cp1, cp2;
@ -2073,7 +2073,7 @@ static NSPoint point_on_curve(double t, NSPoint a, NSPoint b, NSPoint c,
PathElement elem;
int i, count;
if (![aPath isKindOfClass: isa])
if (![aPath isKindOfClass: object_getClass(self)])
{
[super appendBezierPath: aPath];
return;