Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mkristain

macrumors regular
Original poster
Aug 18, 2011
115
0
hi i want to show thumbnail of images in my cocoa application can u please help me to do this.

When i have a image path i show it in IKImageBrowserView using

Code:
MyImageObject *item;
    
    NSString *filename = [path lastPathComponent];
	
	/* skip '.*' */ 
	if([filename length] > 0){
		char *ch = (char*) [filename UTF8String];
		
		if(ch)
			if(ch[0] == '.')
				return;
	}
	
	item = [[MyImageObject alloc] init];	
	[item setPath:path];
	[images addObject:item];
	[item release];
	
	[imageBrowser reloadData];

//but its gives this --ImageKit Error: reloadData called in non main thread

i also want to display thumbnail without having path directly from image stream.

like in visual studio i can read whole image file as stream and with this stream display the thumbnail.

is there any method to do this?

thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.