mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:30:37 +00:00
Clean up NSPasteboardItem files.
This commit is contained in:
parent
257017c65f
commit
b713d0c023
3 changed files with 23 additions and 11 deletions
|
@ -30,8 +30,8 @@
|
|||
* NSPasteboardReading + NSPasteboardWriting.
|
||||
*/
|
||||
|
||||
#import <AppKit/NSPasteboardItem.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AppKit/NSPasteboardItem.h>
|
||||
|
||||
@implementation NSPasteboardItem
|
||||
- (id)init
|
||||
|
@ -54,6 +54,8 @@
|
|||
- (BOOL)setDataProvider:(id<NSPasteboardItemDataProvider>)dataProvider
|
||||
forTypes:(NSArray *)types
|
||||
{
|
||||
NSUInteger i;
|
||||
|
||||
if (![dataProvider conformsToProtocol: @protocol(NSPasteboardItemDataProvider)])
|
||||
{
|
||||
NSLog(@"Pasteboard item data provider %@ must conform to"
|
||||
|
@ -61,7 +63,7 @@
|
|||
return NO;
|
||||
}
|
||||
|
||||
for (NSUInteger i = 0; i < [types count]; i++)
|
||||
for (i = 0; i < [types count]; i++)
|
||||
{
|
||||
NSString *type = [types objectAtIndex: i];
|
||||
[_providerMap setObject: dataProvider forKey: type];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue