Interior pointer accessor list
Interior pointer accessor list
- Subject: Interior pointer accessor list
- From: Dave Keck <email@hidden>
- Date: Tue, 27 Oct 2009 03:43:02 -1000
Hey list,
While in the process of introducing support for GC in my app, I scoured
through the 10.5 framework headers for any methods that might return an
interior pointer. I thought I might share my findings. Here's the command I
used - perhaps someone could improve upon it:
clear; printf "\n"; find . -type f -name "*.h" -exec printf
"====================\n" {} \; -exec echo $1 {} \; -exec printf
"====================\n" {} \; -exec perl -n -e 'print if
m/-[\s]*\(([\s]*[a-z\s]*[\s]*[*]+[\s]*)+\)/g' {} \; -exec printf "\n" {} \;
This list is probably incomplete as it doesn't account for anything that
might be typedef'd to a custom type, nor did I filter out any false
positives.
====================
./AppKit.framework/Versions/C/Headers/NSBitmapImageRep.h
====================
- (unsigned char *)bitmapData;
====================
./AppKit.framework/Versions/C/Headers/NSEvent.h
====================
- (void *)userData;
====================
./AppKit.framework/Versions/C/Headers/NSGraphicsContext.h
====================
- (void *)graphicsPort;
====================
./AppKit.framework/Versions/C/Headers/NSOpenGL.h
====================
- (void *)CGLPixelFormatObj;
- (void *)CGLContextObj;
====================
./AppKit.framework/Versions/C/Headers/NSPrintInfo.h
====================
- (void *)PMPrintSession;
- (void *)PMPageFormat;
- (void *)PMPrintSettings;
====================
./AppKit.framework/Versions/C/Headers/NSQuickDrawView.h
====================
- (void*) qdPort;
====================
./CoreData.framework/Versions/A/Headers/NSManagedObject.h
====================
- (void *)observationInfo;
====================
./Foundation.framework/Versions/C/Headers/NSCoder.h
====================
- (void *)decodeBytesWithReturnedLength:(NSUInteger *)lengthp;
====================
./Foundation.framework/Versions/C/Headers/NSData.h
====================
- (const void *)bytes;
- (void *)mutableBytes;
====================
./Foundation.framework/Versions/C/Headers/NSDecimalNumber.h
====================
- (const char *)objCType;
====================
./Foundation.framework/Versions/C/Headers/NSFileManager.h
====================
- (const char *)fileSystemRepresentationWithPath:(NSString *)path;
====================
./Foundation.framework/Versions/C/Headers/NSKeyValueObserving.h
====================
- (void *)observationInfo;
====================
./Foundation.framework/Versions/C/Headers/NSMethodSignature.h
====================
- (const char *)getArgumentTypeAtIndex:(NSUInteger)idx;
- (const char *)methodReturnType;
====================
./Foundation.framework/Versions/C/Headers/NSPathUtilities.h
====================
- (const char *)fileSystemRepresentation;
====================
./Foundation.framework/Versions/C/Headers/NSPointerArray.h
====================
- (void *)pointerAtIndex:(NSUInteger)index;
====================
./Foundation.framework/Versions/C/Headers/NSString.h
====================
- (const char *)cStringUsingEncoding:(NSStringEncoding)encoding;
- (const char *)UTF8String;
- (const char *)cString;
- (const char *)lossyCString;
====================
./Foundation.framework/Versions/C/Headers/NSValue.h
====================
- (const char *)objCType;
- (void *)pointerValue;
====================
./IOBluetooth.framework/Versions/A/Headers/objc/IOBluetoothSDPUUID.h
====================
- (const void *)bytes;
====================
./QTKit.framework/Versions/A/Headers/QTMovie.h
====================
- (void *)frameImageAtTime:(QTTime)time withAttributes:(NSDictionary
*)attributes error:(NSError **)errorPtr;
====================
./QTKit.framework/Versions/A/Headers/QTSampleBuffer.h
====================
- (void *)bytesForAllSamples;
====================
./Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework/Versions/A/Headers/QCPlugIn.h
====================
- (const void*) bufferBaseAddress;
_______________________________________________
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