• 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: NSTableView and NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView and NSImage


  • Subject: Re: NSTableView and NSImage
  • From: email@hidden
  • Date: Thu, 25 Apr 2002 22:59:27 +0200

On vendredi, avril 26, 2002, at 09:57 , Ian Reid wrote:

Hello,

I am in the initial stages of developing an application, part of which requires displaying
a number of images in a scrollable window, much in the same way as iPhoto, or iMovie.

My experience with Cocoa is somewhat limited, so please bear with me :

My initial choice is to use NSTableView. I have written a very simple application that has
delegated the "willDisplayCell" method. In the delegation, I call the "setImage" method
of the cell. Nothing appears in the table view.

I assume I am doing something wrong here, but I have no idea what. Is this the correct
approach, or should I be doing something else ?

In the archives I have noticed a posting referring to NSImage and NSTableView, that
suggests set the data cell of each column to be an NSImageCell.
According to the documentation, calling the setImage method should automatically
convert the cell to the appropriate type.

Any advice, suggestions or explanations would be gratefully received.

Have a look at: http://s.sudre.free.fr/files/sample2.tar.gz

The comments are in French since it's some sample code from 2 French articles on the NSTableView class:

http://www.mosx.net/dev/NSTableView_part1.shtml (Displaying text, images, checkboxes, etc...)
http://www.mosx.net/dev/NSTableView2.shtml (Drag And Drop & Sorting)
_______________________________________________
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: 
 >NSTableView and NSImage (From: Ian Reid <email@hidden>)

  • Prev by Date: Re: Application, Home, ... Folders
  • Next by Date: Re: Development of database applications
  • Previous by thread: NSTableView and NSImage
  • Next by thread: Re: NSTableView and NSImage
  • Index(es):
    • Date
    • Thread