Re: Scrolling List of Thumbnails?
Re: Scrolling List of Thumbnails?
- Subject: Re: Scrolling List of Thumbnails?
- From: Jerry LeVan <email@hidden>
- Date: Fri, 18 Jun 2004 15:36:46 -0400
Yes, that helps...
I cannot find a clear explanation of what happens when I
click on a cell in a matrix.
It appears that the action is invoked with the matrix as
the sender. Is this the case?
Jerry
On Jun 18, 2004, at 2:12 PM, Louis C. Sacha wrote:
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.