• 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: Create an image Browser.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create an image Browser.


  • Subject: Re: Create an image Browser.
  • From: James Chen <email@hidden>
  • Date: Wed, 11 Feb 2004 09:43:07 +0800

Hi,
I agree with Ryan.
You could create an Image Browser rapidly if you go with NSMatrix.
But I think subclass of NSView or NSControl is the better choice since some behaviors of NSMatrix don't suit for an Image Browser.
Such as the behaviors of selecting cell which trouble me a lot. (I do use NSMatrix to implement my Image Browser and I try to write my own now)
However, I suggest you could start with NSMatrix.
After you understand NSMatrix, it's time to create you NSView subclass. (NSMatrix is a good subject to mimic)
Good Luck,
James

On Feb 10, 2004, at 11:53 PM, Ryan Bates wrote:

On Feb 10, 2004, at 5:34 AM, Roberto Sobachi wrote:
How can I create an Image Browser as iPhoto?
It uses NSTableView?

No, NSTableView would probably be a bad choice. I would go with NSMatrix. It looks like iPhoto uses a custom subclass of NSView. However, NSMatrix should suite your needs just fine. If it doesn't have all of the functionality you need then I suggest subclassing it. Also, please read Apple's documentation before posting on this list:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Matrix/ index.html>

You may also want to consider buying a good Cocoa book. Although I have not read it, Cocoa Programming for Mac OS X by Aaron Hillegass is supposedly very good. Here's an Amazon link:
<http://www.amazon.com/exec/obidos/ASIN/0201726831/ref=pd_sim_books/ 002-5082833-4388041>

Ryan
_______________________________________________
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.
_______________________________________________
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: 
 >Create an image Browser. (From: Roberto Sobachi <email@hidden>)
 >Re: Create an image Browser. (From: Ryan Bates <email@hidden>)

  • Prev by Date: Re: Tabs window autoresizing.
  • Next by Date: Re: HTML-encoded characters mucking up my NSStrings
  • Previous by thread: Re: Create an image Browser.
  • Next by thread: Initializing NSFileWrapper with harddisk crashes
  • Index(es):
    • Date
    • Thread