source: trunk/Cocoa/Pester/Source/NSImage-OAExtensions.h@ 256

Last change on this file since 256 was 102, checked in by Nicholas Riley, 22 years ago

Pester 1.1b3

File size: 1.5 KB
RevLine 
[102]1// Copyright 1997-2002 Omni Development, Inc. All rights reserved.
2//
3// This software may only be used and reproduced according to the
4// terms in the file OmniSourceLicense.html, which should be
5// distributed with this project and can also be found at
6// http://www.omnigroup.com/DeveloperResources/OmniSourceLicense.html.
7//
8// $Header: /Network/Source/CVS/OmniGroup/Frameworks/OmniAppKit/OpenStepExtensions.subproj/NSImage-OAExtensions.h,v 1.14 2002/03/09 01:53:54 kc Exp $
9
10#import <AppKit/NSImage.h>
11
12@class NSMutableSet;
13
14@interface NSImage (OAExtensions)
15
16+ (NSImage *)imageNamed:(NSString *)imageName inBundleForClass:(Class)aClass;
17+ (NSImage *)imageNamed:(NSString *)imageName inBundle:(NSBundle *)aBundle;
18+ (NSImage *)imageForFileType:(NSString *)fileType;
19 // Caching wrapper for -[NSWorkspace iconForFileType:]. This method is not thread-safe at the moment.
20+ (NSImage *)draggingIconWithTitle:(NSString *)title andImage:(NSImage *)image;
21
22- (void)drawFlippedInRect:(NSRect)rect operation:(NSCompositingOperation)op fraction:(float)delta;
23- (void)drawFlippedInRect:(NSRect)rect operation:(NSCompositingOperation)op;
24
25 // Puts the image on the pasteboard as TIFF, and also supplies data from any PDF, EPS, or PICT representations available. Returns the number of types added to the pasteboard and adds their names to notThese. This routine uses -addTypes:owner:, so the pasteboard must have previously been set up using -declareTypes:owner.
26- (int)addDataToPasteboard:(NSPasteboard *)aPasteboard exceptTypes:(NSMutableSet *)notThese;
27
28@end
Note: See TracBrowser for help on using the repository browser.