Re: Scrolling List of Thumbnails?
Re: Scrolling List of Thumbnails?
- Subject: Re: Scrolling List of Thumbnails?
- From: "Louis C. Sacha" <email@hidden>
- Date: Fri, 18 Jun 2004 11:12:34 -0700
Hello...
You also need to call setTarget: to set the object that the action
message is sent to.
Hope that helps,
Louis
It appears to me that I could not set the action dynamically...
ie
// load images into the thumb array
for(i=0 ; i< fcnt ; i++) {
NSImage * tmp= [[NSImage
alloc]initWithContentsOfFile:(NSString*)[fileNameList
objectAtIndex:i]];
[[thumbArray cellAtRow:i column:0] setImage: tmp];
// [[thumbArray cellAtRow:i column:0] setAction:@selector(showMe:)];
[tmp release];
It made no difference if the commented line was there or not, the action
would not fire *unless* I first connected the cell in IB to the action.
(maybe I don't understand how setAction works.)
...
--Jerry
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.