• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scrolling List of Thumbnails?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Scrolling List of Thumbnails? (From: Jerry LeVan <email@hidden>)
 >Re: Scrolling List of Thumbnails? (From: "Louis C. Sacha" <email@hidden>)

  • Prev by Date: Dynamic NSTextView resizing while keeping Y position constant?
  • Next by Date: How can I add custom headers for a library?
  • Previous by thread: Re: Scrolling List of Thumbnails?
  • Next by thread: Re: Scrolling List of Thumbnails?
  • Index(es):
    • Date
    • Thread