On Sep 5, 2009, at 12:26 PM, Christiaan Hofman wrote:

No, this works fine in 64 bit (I use it in FileView); the important
part is @public in the declaration of PublicClassIvars, which
obviates the need for @defs since you already have access to _ivars
from PublicClass.  For true opaque objects, you'd use @dynamic, but
then I think you have to use @property accessors...which would
eliminate the private ivar object also.


But PDFKit does not use @public, and the docs say not to use @defs.

How do you know it doesn't use @public, though, since you don't have the declaration of the ivar class? You can't know that from class- dump, as far as I can tell; it would show up in PublicClassIvars here:

/*
 * File: a.out
 * Arch: Intel x86-64 (x86_64)
 *
 *       Objective-C Garbage Collection: Unsupported
 */

@interface PublicClass : NSObject
{
    PublicClassIvars *_ivars;
}

- (id)init;
- (id)description;

@end

@interface PublicClassIvars : NSObject
{
    id _representedObject;
    long long _type;
}

@end


Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Bibdesk-develop mailing list
Bibdesk-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to