I've got an object that holds onto a CF ref:

mdref= MDItemCreate(nil, (CFStringRef)path);
[NSMakeCollectable(mdref) autorelease];

I think I'm doing the right thing in the class declaration:


@interface MetadataItem : NSObject {
__strongMDItemRefmdref;
@end

But every now and then:

CFTypeRefres = MDItemCopyAttribute(mdref, (CFStringRef)key);

this makes it crash horribly. It's got to have something to do with garbage 
collection, but it seems like I'm doing things right. Any thoughts?



_______________________________________________

Cocoa-dev mailing list ([email protected])

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