PageRenderTime 1ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/filesystems-objc/Support/NSImage+IconData.h

http://macfuse.googlecode.com/
C++ Header | 32 lines | 5 code | 4 blank | 23 comment | 0 complexity | 3419ec7a01bd9dfe59af70aac135e43c MD5 | raw file
 1// ================================================================
 2// Copyright (C) 2007 Google Inc.
 3// 
 4// Licensed under the Apache License, Version 2.0 (the "License");
 5// you may not use this file except in compliance with the License.
 6// You may obtain a copy of the License at
 7// 
 8//      http://www.apache.org/licenses/LICENSE-2.0
 9// 
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15// ================================================================
16//
17//  NSImage+IconData.h
18//  MacFUSE
19//
20//  Created by ted on 12/28/07.
21//
22#import <AppKit/NSImage.h>
23
24@class NSData;
25
26@interface NSImage (IconData)
27
28// Creates the data for a .icns file from this NSImage.  You can use a width
29// of 128, 256 or 512 pixels (128 and 512 only supported on Leopard).
30- (NSData *)icnsDataWithWidth:(int)width;
31
32@end