• 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
Help with NSMatrix (for displaying images from iPhoto)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with NSMatrix (for displaying images from iPhoto)


  • Subject: Help with NSMatrix (for displaying images from iPhoto)
  • From: "John C. Fox" <email@hidden>
  • Date: Thu, 29 Jan 2004 19:31:20 -0800

Howdy:

New day, new problem. There's been a fair amout of traffic on the list about NSTableView and NSMatrix lately, so why not add some more?

Like other folks out there, I'm working on adding support for browsing images in a user's iPhoto Library (are you listening Apple, we need public API's for doing this, along with accessing media from the other iLife apps).

At any rate, I want to create a "contact sheet"-like display of images. I've been able to do this using an NSTableView, which was easy enough to do. However, as others have recently pointed out, if you want to isolate a single cell, you're kind of SOL. The prevailing wisdom seems to be to use an NSMatrix, which I've been working on, but I'm having trouble.

Since the number of image cells will vary, I need to programmatically create the NSMatrix (or in my case, a subclass). I created a method to add the necessary rows based on an array of URL's. (using insertRow: withCells). So far, so good, but nothing displays, even after calling displayIfNeeded.

Bummer.

Did I do something wrong in IB? I dragged a view onto my window, then changed its class to my NSMatrix subclass. Should I simply create an NSView subclass and add my matrix as a subview?

As always, any help greatly appreciated.

John
_______________________________________________
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.

  • Follow-Ups:
    • Re: Help with NSMatrix (for displaying images from iPhoto)
      • From: John Pannell <email@hidden>
  • Prev by Date: Highlighting NSImageCells in an NSMatrix
  • Next by Date: plist files
  • Previous by thread: Re: Highlighting NSImageCells in an NSMatrix
  • Next by thread: Re: Help with NSMatrix (for displaying images from iPhoto)
  • Index(es):
    • Date
    • Thread