Skip to content

Commit

Permalink
Update Finder declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
zerodivisi0n committed Mar 24, 2013
1 parent dc0b6de commit ba04901
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions FinderExt/Finder.h
Expand Up @@ -12,21 +12,25 @@
struct OpaqueNodeRef;

struct TFENode {
struct OpaqueNodeRef *fNodeRef;
struct OpaqueNodeRef *fNodeRef;
};

struct TFENodeVector {
struct TFENode *_begin;
struct TFENode *_end;
struct TFENode *_end_cap;
};
#ifdef __cplusplus
#include <vector>
class TFENodeVector : public std::vector<TFENode> { };
#else // !__cplusplus
struct TFENodeVector;
#endif


@interface FINode
// Old interface:
+ (FINode *)nodeWithFENode:(const struct TFENode *)node;
@property(readonly) NSString *fullPath;
@interface FINode : NSObject

// New interface:
+ (FINode *)nodeFromNodeRef:(struct OpaqueNodeRef *)nodeRef;
// Lion & Mountain Lion
+ (id)nodeFromNodeRef:(struct OpaqueNodeRef *)nodeRef;
@property(readonly) NSURL *previewItemURL;

// Snow Leopard
+ (id)nodeWithFENode:(const struct TFENode *)node;
@property(readonly) NSString *fullPath;

@end

0 comments on commit ba04901

Please sign in to comment.